Telerik-Verified-Plugins / LocalNotification

Apache License 2.0
21 stars 27 forks source link

outside app click event handler #10

Open ghost opened 8 years ago

ghost commented 8 years ago

First a small correction for the doc:

cordova.plugins.notification.local.on('click', function(notification, state, json) {
        alert('ID: ' + notification.id + '   state: ' + state)
    });

the first function argument should be something like notification instead of id just as in the example above.

On iOS I noticed that the alert is not triggered when I click the notification right after it is showing up at the top of the screen. After I clicked the notification from the pull down the alert is triggered for all subsequent notification with the same id.