I am developing phonegap ios app which should have calendar that insert, delete and modify even from my app to native calendar
so, I used EddyVerbruggen Calendar-PhoneGap-Plugin. The link is
https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin
The sample I worked is
var title = 'test title';
var loc = 'chennai';
var notes = 'test Notes';
var eventstartdate = "2015,1,15,0,0,0,0,0";
var eventenddate = "2015,1,16,0,0,0,0,0";
var fulleventstartdate = new Date(feventstartdate);
var fulleventenddate = new Date(feventenddate);
function createCalendar() {
var createCalOptions = window.plugins.calendar.getCreateCalendarOptions();
createCalOptions.calendarName = "Mycal";
createCalOptions.calendarColor = "#ffec8b";
window.plugins.calendar.createCalendar(createCalOptions, onSuccess, onError);
}
function createevent() {
window.plugins.calendar.createEventInNamedCalendar(title, location, notes, fulleventstartdate, fulleventenddate, calendarName, onSuccess, onError);
}
function deleteevent() {
window.plugins.calendar.deleteEventFromNamedCalendar(title, loc, notes, fulleventstartdate, fulleventenddate, calendarName, onSuccess, onError);
}
function updates() {
var newTitle = "New title";
window.plugins.calendar.modifyEventInNamedCalendar(title, loc, notes, fulleventstartdate, fulleventenddate, newTitle, loc, notes, fulleventstartdate, fulleventenddate, calendarName, onSuccess, onError);
}
window.onerror = function (msg, file, line) {
alert(msg + '; ' + file + '; ' + line);
};
function onSuccess(msg) { alert('Calendar success: ' + JSON.stringify(msg)); }
in the above code creating calendar and inserting calendar works well
but, Delete event and Modify event (update) not working in ios
what else i have to do to fix it
kindly reply ASSP
Note: I build my app through phonegap build for ipa file