You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last time I used push notifications on android was in the good days where there were basically no restrictions 😄
I am building an internal app where it is important that the user always receives push notifications, even when their device is locked. I have tried various things, but I cannot get it to work, notifications only appear after I unlock my phone.
I am using the 'notification' section in the FCM payload. Could this be a problem, and should I be using the 'data' section and displaying the notification myself?
This is what I have tried so far:
Created a channel with importance 'High'
Sent a FCM notification with 'priority=high' and the correct channel in the 'android' section
Set battery background usage to 'Unrestricted' on a Google Pixel
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The last time I used push notifications on android was in the good days where there were basically no restrictions 😄
I am building an internal app where it is important that the user always receives push notifications, even when their device is locked. I have tried various things, but I cannot get it to work, notifications only appear after I unlock my phone.
I am using the 'notification' section in the FCM payload. Could this be a problem, and should I be using the 'data' section and displaying the notification myself?
This is what I have tried so far:
This is basically what it says you should do according to the firebase devs themselves:
https://firebase.blog/posts/2025/04/fcm-on-android/
Beta Was this translation helpful? Give feedback.
All reactions