Calendar-PhoneGap-Plugin不适用于ios [英] Calendar-PhoneGap-Plugin Not Working for ios

查看:86
本文介绍了Calendar-PhoneGap-Plugin不适用于ios的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发phonegap ios应用程序,它应该有日历,即使从我的应用程序插入,删除和修改到本机日历



所以,我使用了EddyVerbruggen Calendar-PhoneGap -插入。链接是



https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin



我工作的样本是





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);
 
//---To Create calendar--------------------------------------
function createCalendar() {
var createCalOptions = window.plugins.calendar.getCreateCalendarOptions();
createCalOptions.calendarName = "Mycal";
createCalOptions.calendarColor = "#ffec8b";
window.plugins.calendar.createCalendar(createCalOptions, onSuccess, onError);
}
 
//---To Create event--------------------------------------
function createevent() {
window.plugins.calendar.createEventInNamedCalendar(title, location, notes, fulleventstartdate, fulleventenddate, calendarName, onSuccess, onError);
}
 
//---To delete event--------------------------------------
function deleteevent() {
window.plugins.calendar.deleteEventFromNamedCalendar(title, loc, notes, fulleventstartdate, fulleventenddate, calendarName, onSuccess, onError);
}
 
//---To modify event--------------------------------------
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)); }









以上代码创建日历和插入日历工程好吧



但是,删除事件和修改事件(更新)在ios中不起作用



还有什么我的需要做的就是解决它



请回复ASSP



注意:我通过phonegap build构建我的应用程序对于ipa文件





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

推荐答案

请不要在多个论坛中发布相同的问题。
Please do not post the same question in multiple forums.


这篇关于Calendar-PhoneGap-Plugin不适用于ios的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆