Hello,
I have installed the package and trying to schedule the local notification but getting error.
Undefined is not an object evaluating NotificationsIOS.localNotification

Hi @hiteshi-pawan,
Did you add :
// Required for the localNotification event.
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{
[RNNotifications didReceiveLocalNotification:notification];
}
to your AppDelegate.m ?
And are you sure that your build succeeded after adding react-native-notifications and running react-native link react-native-notifications ?
@lidanh Hey! any update on this?
Hey, I am no longer using the library so you can close the issue. Thanks for your time and support.
@hiteshi-pawan can you please share what you ended up doing, it doesn't seem to work for me as well. I wanna put a notification after around 3 days.
@noumantahir I had to support only iOS so I directly wrote the code in AppDelegate.m file in ObjectiveC.
same issue here.... +1
you should import like this
import NotificationsIOS, {NotificationsAndroid} from 'react-native-notifications';
but still firing nothing... any update on this?
any solution plz??
@lidanh can we have any solution for this issue? Your help would be highly appreciated.
Thanks
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.
The issue has been closed for inactivity.
Anyone found a solution for this?
@cinder92 worked for me. Thanks!
Anyone found a solution for this? ???
Most helpful comment
you should import like this
but still firing nothing... any update on this?