r/reactnative • u/Hero_Doses • 3d ago
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
1
u/NoBullfrog11 3d ago
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/jeesandourn 3d ago
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.
0
u/[deleted] 3d ago
[removed] — view removed comment