NotificationEvents: { NotificationReceive: "notificationReceive"; NotificationClick: "notificationClick" } = ...

Type declaration

  • NotificationReceive: "notificationReceive"

    Handles a notification messages that arrived while the app was running in the foreground for iOS but Android handles while in the foreground or background. In iOS, the return value specifies how you want the system to alert the user, if at all. So return values does not effect in Android.

    Example

    Notifications.onNotificationReceive = function(e){
    console.log("willPresentNotification", e);
    return [Notifications.iOS.NotificationPresentationOptions.SOUND,Notifications.iOS.NotificationPresentationOptions.ALERT]; // or []
    };

    @event onNotificationReceive

    Param

    Returns

    Specify [] to silence the notification completely.

    Ios

    Android

    Static

    Since

    4.0.3

  • NotificationClick: "notificationClick"

    This event triggered when clicked on notification alert

    onNotificationClick

    Param

    Ios

    Android

    Static

    Since

    4.0.3

Generated using TypeDoc