我正在开发一个带日历的手机缺口项目。所以我需要添加提醒和事件(无论过程可以在设备日历中完成)。我正在寻找iPhone和Android使用手机间隙的设备日历的同步过程。由于我是这个领域的新手,请引导我一些编程步骤和一些例子。
提前致谢。
答案 0 :(得分:1)
您需要使用JavaScript API访问目标设备上的日历。
虽然PhoneGap不提供标准的日历API(http://docs.phonegap.com/en/2.5.0/index.html),但已创建社区插件
适用于Android的PhoneGap日历插件: https://github.com/phonegap/phonegap-plugins/tree/master/Android/CalendarPlugin
适用于iOS的PhoneGap日历插件: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/CalendarPlugin
答案 1 :(得分:0)
这是一个通用的Android / iOS版本: https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin