GCM notification not received on one of the mobile devices

自作多情 提交于 2019-12-18 13:54:14

问题


I am trying to send GCM notification to the device xiaomi redmi 1s, not getting the notification on the device while the same notification is getting delivered to the other devices and the failure for message count is 0.Can anyone please tell the issue.I have debugged it not received any call on onMessage method.

not got any message in the app either in the foreground or in the background state of the application, the registration id is correct checked it in IDE.GCM response is "success":2,"failure":0


回答1:


Xiaomi for security purposes disables the Notification for each Application. Follow these steps to receive messages in background once they quit the app using cleaner.

  • Enable Autostart
  • Enable Floating and Lock Screen Notification

Enable AutoStart

  • Open Security App.

  • Got to Permissions, then Click on Auto Start Management.

  • Add/Enable auto start apps (e.g. Whatsapp).

Enable Floating and Lock Screen Notification

  • Open Settings App.

  • Click on Notifications, then click on Manage Notifications.

  • Tap on the App which you are looking for (e.g. WhatsApp).

  • Enable Show in notification shade / Show on lockscreen and in drop down option.

For Reference check this out : http://support.hike.in/entries/55998480-I-m-not-getting-notification-on-my-Xiaomi-Phone-For-MIUI-6-



来源:https://stackoverflow.com/questions/33935521/gcm-notification-not-received-on-one-of-the-mobile-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!