解析:取消订阅频道后,我仍会收到推送通知

时间:2023-01-27 18:23:44

I have an Android app that receive push notifications from Parse.com platform. It works properly but when I unsubscribe from a channel, I still receive notifications from this:

我有一个Android应用程序,可以从Parse.com平台接收推送通知。它工作正常,但当我取消订阅频道时,我仍然会收到以下通知:

private void unsubscribe(String channel) {
    ParsePush.unsubscribeInBackground(channel, new SaveCallback(){
        public void done(ParseException e ) {
            if (e == null) 
                success();
            else 
                failed();
        }
    });
}

success() method is called, then unsubscription process is righly performed.

调用success()方法,然后正确地执行取消订阅过程。

Can you help me?

你能帮助我吗?

Thanks.

1 个解决方案

#1


Thanks to Björn Kaiser, I have realized that the problem was not in the unsubscription but in sending push notification. I was sending a broadcast push, instead of targeted one by channel. A silly mistake.

感谢BjörnKaiser,我意识到问题不在于取消订阅,而在于发送推送通知。我正在发送广播推送,而不是逐个频道。一个愚蠢的错误。

#1


Thanks to Björn Kaiser, I have realized that the problem was not in the unsubscription but in sending push notification. I was sending a broadcast push, instead of targeted one by channel. A silly mistake.

感谢BjörnKaiser,我意识到问题不在于取消订阅,而在于发送推送通知。我正在发送广播推送,而不是逐个频道。一个愚蠢的错误。