Schedules the localNotification for immediate presentation.
details is an object containing:
alertBody : The message displayed in the notification alert.soundName : The sound played when the notification is fired (optional).Schedules the localNotification for future presentation.
details is an object containing:
fireDate : The date and time when the system should deliver the notification.alertBody : The message displayed in the notification alert.soundName : The sound played when the notification is fired (optional).Cancels all scheduled localNotifications
Sets the badge number for the app icon on the home screen
Gets the current badge number for the app icon on the home screen
Attaches a listener to remote notification events while the app is running + } + // Required for the localNotification event. + - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification + { + [RCTPushNotificationManager didReceiveLocalNotification:notification]; + }
Schedules the localNotification for immediate presentation.
details is an object containing:
alertBody : The message displayed in the notification alert.soundName : The sound played when the notification is fired (optional).Schedules the localNotification for future presentation.
details is an object containing:
fireDate : The date and time when the system should deliver the notification.alertBody : The message displayed in the notification alert.soundName : The sound played when the notification is fired (optional).userInfo : An optional object containing additional notification data.Cancels all scheduled localNotifications
Sets the badge number for the app icon on the home screen
Gets the current badge number for the app icon on the home screen
Cancel local notifications.
Optionally restricts the set of canceled notifications to those
+notifications whose userInfo fields match the corresponding fields
+in the userInfo argument.
Attaches a listener to remote notification events while the app is running in the foreground or the background.
Valid events are:
notification : Fired when a remote notification is received. The
handler will be invoked with an instance of PushNotificationIOS.register: Fired when the user registers for remote notifications. The
handler will be invoked with a hex string representing the deviceToken.