google / gcm

Google Cloud Messaging - client libraries and sample implementations
https://developers.google.com/cloud-messaging
Apache License 2.0
821 stars 515 forks source link

Gcm notification not received #130

Open PrathmK opened 8 years ago

PrathmK commented 8 years ago

Not received GCM notification on android Xiaomi redmi 1s only receiving on the same notification on the other devices, i am getting success in the server response.

Atrix1987 commented 8 years ago

Xiaomi has customized the OS to not deliver intents to all apps. Only apps which have permission to auto start and show notifications can post notifications to the status bar.

Go through the phone settings to find the 2 settings and enable it for your app.

PrathmK commented 8 years ago

Done the two settings, still it is not receiving

Atrix1987 commented 8 years ago

Can you please post the screenshots of the settings you enabled?

PrathmK commented 8 years ago

device-2015-11-26-162200 device-2015-11-26-162326

ogeidix commented 8 years ago

GCM requires Google Play services to be installed on the device. Could you check that your device includes "Google Play services" in the list of applications?

PrathmK commented 8 years ago

@ogeidix : yes it is installed, i checked it

huteri commented 8 years ago

How I am supposed to tell the users about this issue? Do you have any developer side solution?

Atrix1987 commented 8 years ago

Detect phone model on app launch. If it is Xiaomi device or any other device which has the issue, show them a dialog/screen/message and direct them how to enable it. If possible start the settings activity where you need to enable it