Closed Android application not receiving notifications on some devices

Hello! While testing FCM messages on Android I noticed that on my Honor 7 I didn’t receive notifications when the application was closed. I found out that the application had to be set as “protected app” in order to receive notifications while closed (or maybe suspended is the correct term). Some applications (like Twitter) are set as protected by default. Is there a way to make my application protected by default without the need for the user to set it?

Hey mate,

it looks like Huawei is up to some fishy business. See this stackoverflow post for details.

The apps that are protected by default seem to be hand-picked by Huawei themselves. Bummer.