Nitesh Kumar
Nitesh Kumar

Reputation: 5440

Not receiving GCM push notification in MI phone if app is killed

I integrated GCM in my project to receive push notification from server. I am able to successfully receive push notification in all the devices (Nexus, Samsung etc), however, I am not receiving notifications on my Xiaomi MI phone.

When the app is running or is in background then I am receiving notification however if I kill the app (by swiping the app away from recent apps) then I don't receive any notification.

In pre-installed Security app there is an Auto-Start feature. Some apps have this auto-start feature turned ON and some don't. My app have this auto-start feature turned OFF. If I turn auto-start ON for my app then I start receiving notifications even if I kill the app.

How can I fix this issue? Please help me out.

Upvotes: 6

Views: 5222

Answers (1)

Nikhil Borad
Nikhil Borad

Reputation: 2085

Start AutoStart

Open Security App -> Permissions -> Auto Start Management.
Add/Enable your app as auto start apps

Start Lock Screen Notification

Open Settings App -> Notifications - Manage Notifications.
Tap on your App and select all cases.

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

Upvotes: 9

Related Questions