I did find an interesting post here: http://stackoverflow.com/questions/31638986/protected-apps-setting-on-huawei-phones-and-how-to-handle-it
Op dinsdag 19 april 2016 15:16:32 UTC+2 schreef Marcel Molenaar: > > 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/79d217ca-0d91-4426-9c1f-77c7ef242418%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

