Search code examples
androidreactjsreact-nativepush-notificationexpo

Android: Expo Notification not showing on lock screen after inactivity


On Android my expo app does not show notification (or they are receiving very late) after a certain amount of time (like 3-5) being inactive and the phone being locked.

As soon as I unlock the phone I receive the pending notifications right away!

When the phone is unlocked all notification receive properly and when I freshly lock the phone within the first 3 min (or so) the notification receive too. Just after being inactive, they won't show up.

I am not sure if this is some Android setting (this happens on Samsung A9 and Xiaomi Pocophone P1) or something I can set up in my app... On iOS it all works fine.

Do you have an idea what the problem could be? Other apps like Facebook, Instagram etc. work fine.


Solution

  • I figured it out. While sending the notification I had to set priority to high. see expo doc. Too bad nobody could help me with it. But I hope this answers the question for other people, if they face the same problem.