Hi everyone.
I'm facing this issue on Huawei P8 and P7 devices:
My app runs as a service and after working for certain amount of time, the phone shuts it down, we don't know the reason, because we couldn't find any issue or exception debugging the app, some readings makes reference to EMUI features for shutting down apps that are too resource consuming, but we are not sure it is the reason.
The weirdest thing is that the app has a feature for waking it up using a push message in case the service goes down, but when I send the push to the device and the device has shut down the service, I receive the following error in the logs
GCM message ar.com.myapp.mypack 0:1462459491935451%3c2ed126f9fd7ecd
broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=ar.com.myapp.mypack (has extras)
but if I attemt a push while the app is running I have no problem in getting and processing it thouh the proper intent.
I've also read that it can happend due to an issue in the manifest, but it is not the case, on top of that, in other brands it works fine as far as I've tested, so it is driving me nuts.
does anyone have a tip that can helpp on this issue? It will be really appreciated.
thanks you all.
