简体   繁体   中英

GCM not working for release apk

Before any one marks this as a duplicate, I have been through every related documents and questions in Stack Overflow but I could not get my exact solution for my problem.

GCM for release apk works with other devices but does not work in Sony Xperia Z5 with Android version 7. Every other devices works fine.

I have tried with OnePlus 3 with Android version 7 and it works. The problem exists only with Sony Xperia Z5 (Nougat).

In my caseIi have checked all GCM key and tried with SHA1 fingerprint as recommended by few answers in Stack Overflow.

I have tried adding few lines in ProGaurd file as recommended in GCM registration works for debug APK but not release APK .

But nothing is working for me.

Since it's device specific, maybe the app manager in your Sony Xperia blocks the notification of your app. There was no issue with GCM because as you've said, the problem exists only with Sony Xperia and works fine with other devices. Here's a thread which might help. If Setting > Personalization > Notification center doesn't work, try to repair the firmware using PCC .

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