Is it possible to prevent the android system from stopping the FirebaseMessagingService
?
After sometime our testing device stops to receive notifications while at background. According to logs:
2020-09-13 14:14:05.872 18566-18974/? I/ActivityManager: freeze 10345:com.mycompany.MyApp/u0a170 (adj 700): stop com.mycompany.MyApp
2020-09-13 14:14:05.878 18566-18974/? I/ActivityManager: Force freezing service ServiceRecord{8f0ebfd u0 com.mycompany.MyApp/crc644af56f60c0170ff3.MyFirebaseMessagingService}
2020-09-13 14:14:05.878 18566-18974/? I/ActivityManager: Force freezing service ServiceRecord{1654af9 u0 com.mycompany.MyApp/com.google.firebase.iid.FirebaseInstanceIdService}
.....
2020-09-13 14:23:00.708 19077-19077/? W/GCM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000000 pkg=com.mycompany.MyApp (has extras) }
I've already implemented a request for REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
permission. Notifications surely contain the data
field. Everything was implemented according to official documentation
User contributions licensed under CC BY-SA 3.0