Reputation: 2438
Im using React Native Push Notifications
And Can't get local notifications to show on IOS. Not on device nor on simulator.
I have configured the native exactly as showed in the docs - PushNotificationIOS and Manual linking
And implemented the same exact service from the repo example - here
Both the local and scheduled notifications trigger and onNotification
callback is getting called, returning notification object, only no notification is seen on simulator nor device..
There is an issue opened issue from 2017 but with no solution.. Not getting local notification in ios
Any ideas how to solve this?
Thanks
Upvotes: 0
Views: 1079
Reputation: 2438
So answering myself... apparently (as @Brian Gerhards stated in the comments) on IOS you cant send notifications when the app is foreground (opened) so once I attempted to send a scheduled notification of 5 seconds and minimized the app it was sent perfectly. Not sure if I missed this info or its not stated in RN native docs.
Anyway hope this will help someone in the future
Upvotes: 2