Telerik-Verified-Plugins / LocalNotification

Apache License 2.0
21 stars 27 forks source link

autoClear not working #9

Open ghost opened 8 years ago

ghost commented 8 years ago

I schedule a notification like this:

scheduleNotification: function(duration) {
            cordova.plugins.notification.local.schedule({
                id        : Math.floor(Math.random() * 1000),
                title     : 'Meter',
                text      : 'Your meter time expires soon',
                every     : 'minute',
                autoClear : true,
                at        : new Date(new Date().getTime() + duration*60*1000)
            });
        }

On iOS I get a message:

Unknown property: autoClear local-notification-util.js: 115

but not on Android! Therefore I set:

cordova.plugins.notification.local.setDefaults({
                autoClear: true
            });

which doesn't give above message on iOS, however, on both OS's it doesn't cancel the notification when it is clicked. In case it matters: cordova 5.2.0 de.appplant.cordova.plugin.local-notification 0.8.2dev2 iPhone 6 with iOS v8.4 Samsung S6 Edge with Android v 5.0.2

mrnebbi commented 8 years ago

I'm also having this issue.

Brhernann commented 7 years ago

i can't cancel the hours after the hour scheduling, who can help me?