wumke / react-native-local-notifications

Manageable local notifications for React Native on iOS and Android.
MIT License
84 stars 33 forks source link

When App in Foreground, it is showing an Alert with `Close` text #27

Open tvhimanshu opened 5 years ago

tvhimanshu commented 5 years ago

Great work!!

Just got a strange behaviour, when App in Foreground, it is showing an Alert with Close text

2019-06-14

wumke commented 5 years ago

That is strange indeed! On iOS or Android? Do you have other packages or self defined notification listeners in your app that can explain what you see?

tvhimanshu commented 5 years ago

Thanks for quick response, this is happening in iOS and there is no other listener.

wumke commented 5 years ago

I've tested it in my app on iOS in foreground, i see no alert but I've also used react native push notifications package in that app and catch notifications when app is in foreground and then display a short android-like toast message...

Do you have a (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification function in your AppDelegate.m? Normally when you have no listeners nothing happens on iOS.