r/reactnative • • Nov 03 '26

Help Dev mode vs Prod (Expo): Local Notifications just won't work in prod

/r/expo/comments/1xmjm50/dev_mode_vs_prod_local_notifications_just_wont/
2 Upvotes

10 comments sorted by

1

u/NoBullfrog11 Nov 03 '26

a couple things differ between dev and a release build for local notifs.

on android 13 and up the app has to ask for the post_notifications permission at runtime, and the channel has to exist before you schedule anything. dev builds often have it granted from earlier testing, a fresh prod install doesnt.

also android 12 and up needs the exact alarm permission for exact times. i would install the release build on a clean device and run adb logcat while scheduling, ussually the reason shows up there.

1

u/Hero_Doses Nov 03 '26

This is great!

1

u/jeesandourn Nov 03 '26

is this happening on both platforms or just one? usually when local notifications fail in prod builds its because the exact alarm or notification permissions arent explicitly declared in the config before prebuild.

1

u/Hero_Doses Nov 04 '26

Right now Ive just been using my app on android

0

u/[deleted] Nov 03 '26

[removed] — view removed comment

1

u/Hero_Doses Nov 03 '26

Thanks for the awesome advice!

0

u/[deleted] Nov 03 '26

[removed] — view removed comment

1

u/Hero_Doses Nov 03 '26

Hey thats super nice of you! I realized I may have misstated the issue: sometimes the notifs come through, but clicking the notification buttons (after properly setting them and making sure they work in dev mode) don't complete the proper actions and instead just open the app.

If you have any further advice there, that would be awesome! Otherwise I can try out your advice and get back to you 😁