react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

Local Notification not working

Open felangga opened this issue 9 years ago • 7 comments

Hi, I'm using this library to test out the local notification on ios. But it doesn't work, I already follow all the instructions. Does it doesn't work on simulator ?

felangga avatar Jun 19 '17 09:06 felangga

I had the same problem but I later realized, the notifications were not showing because the application was in the foreground, this caused the 'notificationReceivedForeground' event to get fired.

You might want to put your call to 'NotificationsIOS.localNotification' in a setTimeout. This way you can switch to the home screen before the notification is sent.

jerbio avatar Aug 08 '17 21:08 jerbio

I was able to get iOS local notifications by setting the fireDate to be a future time and minimizing the app, but Android does not have a fireDate. I tried setTimeout, but that does not work because I believe the JS is frozen while the app is in the background. The NotificationsAndroid.setNotificationReceivedListener does not fire when I send a local notification. I see a log from my emulator console D/ReactNativeNotifs: Native method invocation: postLocalNotification which shows I did hit postLocalNotification in RNNotificationsModule.java, but the listener does not fire.

nolan-m avatar Aug 17 '17 17:08 nolan-m

same issue here...

cinder92 avatar Feb 16 '18 22:02 cinder92

Any fix?

arunaiqvia avatar Jun 26 '18 09:06 arunaiqvia

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Jul 24 '19 20:07 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Jul 31 '19 21:07 stale[bot]

fireDate not working in android

EarvinJay avatar Sep 14 '19 19:09 EarvinJay