GCM push notification is not showing in some devices when app is not running

后端 未结 4 1668
甜味超标
甜味超标 2021-02-13 12:00

I am implement GCM Push Notification in my app and its successfully done but in some devices it not show notification when app is close.

List of device which notication

4条回答
  •  难免孤独
    2021-02-13 12:42

    There is concept of whitelisting in Xiaomi's phone. So, if you put log in onReceive of gcm, you will notice that gcm is receiving but it's not processing further. Its cause your app is not whitelisted.

    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-

    i got success with this.. Hope it helps..

提交回复
热议问题