High background battery usage when receiving thousands of GCM push notifications

Hi there,

We are developing an app that has the “Instant messaging” feature and occurred the “High background battery usage” problem on some Samsung device (e.g Samsung S9+).

The problem can be reproduced when there were thousands of GCM push notifications for 24 hours, the app will be waked up and handle the push notification (including showing notification for the user and some network requests) once it receives a push notification.

We initially thought that there was unnecessary consumption in processing the push notifications, but the problem still exists after we disable all the handling and just do nothing when receiving a GCM push notification.

My question is: How does the system determine if an application has high background battery usage and how to avoid it.

Thanks for any help.


Hi Gavin,
Did you face the battery consumption issue only with this particular Samsung device or it is happening with all devices? Did you check the issue with other manufacturer’s device?
If you face the issue only with Samsung device then you can create issue in Samsung developer support officially with below information:

  1. Steps to reproduce the issue with sample app
  2. Demo Video
  3. Dumpstate log

Please take the dump-state log by following this:
a) Immediately after issue reproduction, dial *#9900# and if the Debug Level is Disabled/LOW, tap to select MID. This restarts the device.
b) Again dial *#9900# and press “RUN DUMPSTATE/LOGCAT/”
c) When it is finished press “COPY TO SDCARD(INCLUDE CP RAMDUMP)
d) In the main folder of the device file system, there will be created a new folder called “log”. The log file should be there.
Hope you will get better suggestion.


Thank you for your reply, I will send the information to Samsung developer support once I reproduce the problem.