简体   繁体   中英

Can a user disable push notifications in such a way that onMessageReceived will not be called?

I'm considering using GCM notifications to implement a chat activity. Is it safe to use GCM to deliver the chat messages between users?

I have tested turning on 'Block all' notifications, but I'm still able to receive messages in onMessageReceived of my GcmListenerService and update my chat UI. It seems only the ability to show an actual toolbar notification has been disabled.

I just wanted to make sure there wasn't some other way for a user to "hard disable" push notifications in such a way that I won't even receive my onMessageRecieved call.

不确定是否有这样的选项,但是您始终可以使用标志来检查并执行其内容

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM