Phonegap / iPad -- UTI's - 文档类型...如何处理传入的 URL
我想导入和导出 CSV。我已经弄清楚如何让 iPad 将我的应用程序识别为打开 CSV 文件的应用程序。
但从那里我迷失了。我找到了关于iPad如何通过application:didFinishLaunchingWithOptions或handleOpenURL发送文件的解释...
我发现在我的js文件中添加一个名为handleOpenURL(url)的函数会向我传递文件的url...所以现在我有这个了。
这太棒了,因为我现在知道有人已经通过这种方式打开了我的应用程序。 很酷...但是我如何获取该 URL 的内容?
I want to import and export CSV's. I have figured out how to get the iPad to recognize my app as one that opens CSV files.
From there though I am lost. I have found explanations on how the iPad sends in my file via application:didFinishLaunchingWithOptions or handleOpenURL ...
I've figured out that adding a function called handleOpenURL(url) in my js file passes me the url for the file... so now I have this.
That is great because I now know that someone has opened my app this way. Cool... BUT how do I grab the contents of that URL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
知道了!呜呜,这就是我做的...
GOT IT! Woot, this is what i did...