问题
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