从这些图像中可以看到,它发出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/