7在设备上推送通知而不是1

时间:2014-07-05 21:42:44

标签: android parse-platform

enter image description here enter image description here

从这些图片中可以看出,它会发出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();
    }
}

1 个答案:

答案 0 :(得分:1)

Parse Android中存在一个已知错误,当​​应用程序重新安装在同一设备上时会创建重复的安装对象。因此,您会在同一设备上看到重复的推送通知。

您可以在此处订阅错误更新, https://developers.facebook.com/bugs/1520221558200050/