Handle .ICS files in Phonegap

拟墨画扇 提交于 2019-12-11 11:13:36

问题


we've got an app that includes a few links to external .ICS (calendar appointments). In safari it's handled fine however in Phonegap they're not. We've tried opening them in the InAppBrowser and we just get a loading error.

Ideally, we need people to be able to click these external .ICS files and have them handled in a normal way (iphones open iCal, android opens calendar and adds the event, etc).

Any suggestions? We can't get links to open in Safari while having the InAppBrowser installed so we can even seem to push users out to safari.


回答1:


I believe you could use a plugin for that. Check out this plugin.




回答2:


We've managed to solve this by pushing the links to the calendar files out to safari - it seems to get picked up before it even opens safari and pops up with the nice 'add to calendar' dialog while still in our app. Perfect :)



来源:https://stackoverflow.com/questions/32610581/handle-ics-files-in-phonegap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!