在Phonegap中处理.ICS文件 [英] Handle .ICS files in Phonegap

查看:125
本文介绍了在Phonegap中处理.ICS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个应用程序包含一些指向外部.ICS(日历约会)的链接。在safari它处理好,但在Phonegap他们不是。我们试过在InAppBrowser中打开它们,我们只得到一个加载错误。

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.

理想情况下,我们需要人们能够点击这些外部.ICS文件,以正常方式处理(iphones打开iCal,android打开日历并添加事件等)。

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).

有任何建议吗?我们无法在安装InAppBrowser的情况下在Safari中打开链接,因此我们甚至可能似乎将用户推向Safari。

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.

推荐答案

p>我们已经设法解决这个问题,通过推送日历文件的链接到safari - 它似乎在它甚至打开safari之前挑选,与漂亮的添加到日历对话框,而仍然在我们的应用程序中弹出。完美:)

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 :)

这篇关于在Phonegap中处理.ICS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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