PushNotificationIOS.presentLocalNotification()

static presentLocalNotification(details)

Schedules the localNotification for immediate presentation.

details is an object containing:

  • alertBody : The message displayed in the notification alert.
  • alertAction : The "action" displayed beneath an actionable notification. Defaults to "view";
  • soundName : The sound played when the notification is fired (optional).
  • category : The category of this notification, required for actionable notifications (optional).
  • userInfo : An optional object containing additional notification data.
  • applicationIconBadgeNumber (optional) : The number to display as the app’s icon badge. The default value of this property is 0, which means that no badge is displayed.
doc_React_Native
2016-06-23 04:25:01
Comments
Leave a Comment

Please login to continue.