从这些图像中您可以看到,它发出了 7 条通知。我不想要这个。这是我的代码:
public class Application extends android.app.Application {
public Application() {
}
@Override
public void onCreate() {
super.onCreate();
Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE);
// Initialize the Parse SDK.
Parse.initialize(this, "yovKfUASIkl14OmRLMT5sXSJvrySDoS8MLwJ7pAA", "mnVmfBTnSzYneOxuf3jUiRKNs9P53ipsdkSwt5dq");
// Specify an Activity to handle all pushes by default.
PushService.setDefaultPushCallback(this, SplashActivity.class);
ParseInstallation.getCurrentInstallation().saveInBackground();
}
}
Parse Android 中有一个已知错误,当应用程序在同一设备上重新安装时,会创建重复的安装对象。因此,您会在同一设备上看到重复的推送通知。
您可以在这里订阅错误更新,https://developers.facebook.com/bugs/1520221558200050/ https://developers.facebook.com/bugs/1520221558200050/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)