Hello all, I have a problem with recieving GCM push notifications.
I tested my app on a Huawei ALE-L21. On all other devices i tested with the GCM push notifications worked well but on the Huawei it only worked when the app was running in the foreground. After hours of searching i found in settings -> energy saver -> Protected apps that i had to add my app as a protected app. After that everything worked fine. The problem is that this was really hard to find and the future users of my app wil not know about this feature and simply will not receive any push notifications. My question: is there a way to programmatically set my app as being a protected app? Somehow through the manifest file or something? Or is there any other solution for this? Marcel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/1484e28d-9b6c-45da-9d65-37cccd7ab329%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

