Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoClear not working #9

Open
ghost opened this issue Sep 15, 2015 · 2 comments
Open

autoClear not working #9

ghost opened this issue Sep 15, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 15, 2015

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
Copy link

mrnebbi commented Apr 18, 2016

I'm also having this issue.

@Brhernann
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants