Working example of getLaunchNotification?

Answered

Comments

1 comment

  • Avatar
    Max Konev

    It's pretty simple (you have to launch the app from push notification of course):

    var pushNotification = cordova.require('com.pushwoosh.plugins.pushwoosh.PushNotification');
    pushNotification.getLaunchNotification(
        function(notification) {
            if (notification != null) {
                alert(JSON.stringify(notification));
            } else {
                alert("No launch notification");
            }
        }
    );
    

Please sign in to leave a comment.