javascript - How can I add reminders into mobile device calendar using Java script? -


how can add reminders mobile device calendar using java script? want use script in phonegap application.

you can use phonegap calendar plugin add events: https://github.com/eddyverbruggen/calendar-phonegap-plugin

e.g.

window.plugins.calendar.createevent(title,eventlocation,notes,startdate,enddate,success,error); 

you can add reminders events:

  // or add reminder, make recurring, change calendar, or url, use one: var filteroptions = window.plugins.calendar.getcalendaroptions(); // or {} or null defaults filteroptions.calendarname = "bla"; // ios filteroptions.id = "d9b1d85e-1182-458d-b110-4425f17819f1"; // ios only, createeventwithoptions (if not found, try matching against title, etc) var newoptions = window.plugins.calendar.getcalendaroptions(); newoptions.calendaname = "new bla"; // make sure calendar exists before moving event // not passing in reminders wipe them event. wipe default first reminder (60), set null. newoptions.firstreminderminutes = 120;   window.plugins.calendar.modifyeventwithoptions(title,eventlocation,notes,startdate,enddate,newtitle,eventlocation,notes,startdate,enddate,filteroptions,newoptions,success,error); 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -