I integrated plugin add cordova-plugin-firebasex in my quick demo app.
I subscribed to push notification. I receive them in foreground mode but if I send a test notification and App is in background, I can’t receive message on my demo device (xiaomi 10).
I logged wit Android studio and I receive this log:
2023-06-25 19:11:11.722 1574-1634 SmartPower...354(31525) pid-1574 I idle->background(54504ms) R(broadcast start Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=it.mgdlab.app.flannery cmp=it.mgdlab.app.flannery/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }) adj=0.
2023-06-25 19:11:11.722 1574-1975 SmartPower pid-1574 I it.mgdlab.app.flannery/10354 state=hibernation adj=0 proc size=1 move to background broadcast start Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=it.mgdlab.app.flannery cmp=it.mgdlab.app.flannery/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }
2023-06-25 19:11:11.723 1574-1975 SmartPower pid-1574 I it.mgdlab.app.flannery/10354 state=background adj=0 proc size=1 move to inactive broadcast start Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=it.mgdlab.app.flannery cmp=it.mgdlab.app.flannery/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }
2023-06-25 19:11:14.724 1574-1975 SmartPower...354(31525) pid-1574 I background->idle(3002ms) R(broadcast start Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=it.mgdlab.app.flannery cmp=it.mgdlab.app.flannery/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }) adj=700.
2023-06-25 19:11:14.724 1574-1975 SmartPower pid-1574 I it.mgdlab.app.flannery/10354 state=inactive adj=700 proc size=1 move to idle broadcast start Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=it.mgdlab.app.flannery cmp=it.mgdlab.app.flannery/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }
2023-06-25 19:11:16.725 1574-1975 SmartPower pid-1574 I it.mgdlab.app.flannery/10354 state=idle adj=700 proc size=1 move to hibernation broadcast start Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=it.mgdlab.app.flannery cmp=it.mgdlab.app.flannery/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }
2023-06-25 19:11:16.725 1574-2182 ProcessMemoryCleaner pid-1574 D Compact memory: it.mgdlab.app.flannery/10354(31525) state=hibernation adj=700 pri=111 usage=6 isKilled=false pss:154293 swap:56852
2023-06-25 19:11:29.723 1574-1574 SmartPower...354(31525) pid-1574 I idle->background(15000ms) R(service create it.mgdlab.app.flannery/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService) adj=0.
2023-06-25 19:11:29.724 1574-1975 SmartPower pid-1574 I it.mgdlab.app.flannery/10354 state=hibernation adj=0 proc size=1 move to background service create it.mgdlab.app.flannery/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
2023-06-25 19:11:29.725 1574-1975 SmartPower pid-1574 I it.mgdlab.app.flannery/10354 state=background adj=0 proc size=1 move to inactive service create it.mgdlab.app.flannery/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
2023-06-25 19:11:29.821 31525-31578 TRuntime.C...ortBackend it.mgdlab.app.flannery I Making request to: https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog
2023-06-25 19:11:32.039 31525-31578 TRuntime.C...ortBackend it.mgdlab.app.flannery I Status Code: 200
2023-06-25 19:11:32.726 1574-1975 SmartPower...354(31525) pid-1574 I background->idle(3002ms) R(service create it.mgdlab.app.flannery/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService) adj=700.
2023-06-25 19:11:32.727 1574-1975 SmartPower pid-1574 I it.mgdlab.app.flannery/10354 state=inactive adj=700 proc size=1 move to idle service create it.mgdlab.app.flannery/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
2023-06-25 19:11:34.728 1574-1975 SmartPower pid-1574 I it.mgdlab.app.flannery/10354 state=idle adj=700 proc size=1 move to hibernation service create it.mgdlab.app.flannery/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
2023-06-25 19:11:34.728 1574-2182 ProcessMemoryCleaner pid-1574 D Compact memory: it.mgdlab.app.flannery/10354(31525) state=hibernation adj=700 pri=111 usage=6 isKilled=false pss:154293 swap:56852
Help me to understand and solve the issue
Thanks