React-native-notifications: Local notification is not working

Created on 26 Jul 2017  路  14Comments  路  Source: wix/react-native-notifications

Hello,

I have installed the package and trying to schedule the local notification but getting error.

Undefined is not an object evaluating NotificationsIOS.localNotification

28622164-2cf539e0-7231-11e7-9c96-d66b7037af4e

bug iOcore 馃彋 stale

Most helpful comment

you should import like this

import NotificationsIOS, {NotificationsAndroid} from 'react-native-notifications';

but still firing nothing... any update on this?

All 14 comments

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? ???

Was this page helpful?
0 / 5 - 0 ratings