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

how to set alarm date and time #16

Open
rashnk opened this issue Apr 8, 2016 · 6 comments
Open

how to set alarm date and time #16

rashnk opened this issue Apr 8, 2016 · 6 comments

Comments

@rashnk
Copy link

rashnk commented Apr 8, 2016

i would like to know if there any way to set alarm for a date

@Kobzol
Copy link

Kobzol commented Jun 13, 2016

If you look at the source code here: https://github.com/wnyc/cordova-plugin-wakeuptimer/blob/master/src/android/WakeupPlugin.java#L161
you can see that it accepts a parameter named daylist that should contain an array of days in week when the alarm should be set (you can see the string constant at the top of the file, "sunday", "monday" etc.).

@seineken
Copy link

Could you please post an example how to do it.

@Kobzol
Copy link

Kobzol commented Aug 25, 2016

alarms : [{
            type : 'daylist',
            days : ["sunday", "monday"]
       }] 

@natanraj
Copy link

natanraj commented Oct 7, 2016

But can this plugin work for a particular date ? (Days are Sunday etc), but date is 9th Oct 2016 etc Basically i want to set up a reminder (as alarm for a particular Date)

@Kobzol
Copy link

Kobzol commented Oct 7, 2016

I surveyed the source code and I would say that it's not possible, but maybe I'm wrong.

@htsnet
Copy link

htsnet commented Dec 8, 2017

Is this plugin working for you? In all my tests I always receive a message "error: invalid json " Do you know why?

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

5 participants