I have overrided public void onMessageReceived(RemoteMessage remoteMessage)
in FirebaseMessagingService
.
Then i send data-only push.
When screen of device is on onMessageReceived
is called successfully. Some little time after device locking (screen is off) onMessageReceived
is called successfully too (for another sended push of course).
But if device is in deep sleep mode then onMessageReceived
is not called until i press lock/power button.
Are there any idea, how to popup notification in deep sleep as soon as push sended?
PS: if i use notification-payload in firebase push - i can't localize it in android app (if you have any idea about it - it's superb too).