Skip to content

Instantly share code, notes, and snippets.

@vladimir-kotikov
Last active August 29, 2015 14:01
Show Gist options
  • Save vladimir-kotikov/815338b8ea651033c41e to your computer and use it in GitHub Desktop.
Save vladimir-kotikov/815338b8ea651033c41e to your computer and use it in GitHub Desktop.
Contacts API

Calendar plugin for Cordova already exist. It support iOS and Android platforms and could be easily extended to support both WP8 and Windows 8

Plugin's API

  • listCalendars/createCalendar/deleteCalendar
  • getCalendarOptions/getCreateCalendarOptions
  • createEvent/createEventWithOptions/createEventInteractively/createEventInNamedCalendar
  • modifyEvent/modifyEventInNamedCalendar
  • deleteEvent/deleteEventFromNamedCalendar
  • findEvent/findAllEventsInNamedCalendar
  • listEventsInRange

Windows API

Windows.ApplicationModel.Appointments classes from Windows store API provides almost the same functionality.

Also Windows API has another methods' names, e.g.:

  • DeleteAppointmentAsync instead of deleteEvent
  • ShowEditNewAppointmentAsync instead of createEventInteractively

etc.

Windows/WP API issues

  • WP8: read-only access to calendar and appointment data (http://goo.gl/RFYruF)
  • WP 8.1: read/write access to calendar and appointment data. Almost full Calendar plugin API support
  • Windows8: no api available (api exists starting from 8.1)
  • Windows8.1: appointments only (no managing calendars support) in interactive mode (plugin will show Calendar App popup with appointment details and Add/Save/Delete button)

ETA

Raw ETA for implementing calendar API ~ 1-1.5 week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment