Got it

service shutdown issue

Latest reply: May 11, 2016 07:08:26 2447 1 0 0 0

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.


Dear,
For mobile & home device issue, pls refer to:
Support: http://consumer.huawei.com/en/  
You are also welcome to send an email to mobile@mail01.huawei.com  or Hotline Service if you have any questions about Huawei Consumer products.
Thanks for your understanding.
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.