【发布时间】:2017-09-11 11:09:57
【问题描述】:
我正在开发一个可以发送创建日历事件的 Cordova 应用程序(目前是 Android)。在浏览 Cordova 文档时,我找不到通过 Cordova 邀请人们/添加参与者参加活动的方法。有没有办法做到这一点?
谢谢!
function createCalendarEntry(){
var startDate = new Date(document.getElementById('apptTimeStart').value);
var endDate = new Date(document.getElementById('apptTimeEnds').value);
var title = "Advisor appointment with Jane Doe";
var eventlocation = document.getElementById('location').value;
var notes = document.getElementById('notes').value;
var success = function(message) { alert("Success: " + JSON.stringify(message)); };
var error = function(message) { alert("Error: " + JSON.stringify(message)); };
window.plugins.calendar.createEventInteractively(title,eventlocation,notes,startDate,endDate,success,error);
//window.plugins.calendar.openCalendar();
}
【问题讨论】:
-
您使用的是哪个插件?你试过什么吗?您可以添加一些代码以便我们了解上下文吗?
-
我正在使用基本的科尔多瓦日历插件。向问题添加代码。 @大卫
-
我也愿意尝试任何其他插件,如果有的话。或任何其他选项。
标签: android cordova calendar cordova-plugins