在iOS9上从PhoneGap 5.2.0输入文件-不再起作用 [英] File Input from PhoneGap 5.2.0 on iOS9 - No longer works

查看:81
本文介绍了在iOS9上从PhoneGap 5.2.0输入文件-不再起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Build.PhoneGap.Com(cli 5.2.0),我创建了一个带有index.html的简单PhoneGap应用,该应用仅具有[input type ="file" accept ="image/*; capture = camera"].

Using Build.PhoneGap.Com (cli 5.2.0), I created a simple PhoneGap app with index.html that has [input type="file" accept="image/*;capture=camera"] only.

直到最近的iOS9更新,此页面上的文件输入都可以正常工作.如果单击选择文件",则会出现拍摄照片或视频/选择现​​有文件/取消"对话框. iOS9更新后,选择文件"不再正常工作.单击后,您将不再显示拍摄照片或视频/选择现​​有文件"对话框,而是显示取消"对话框,直到您关闭该应用程序后该对话框才会消失.两个注意事项:

Until recent iOS9 update, file input on this page worked fine. If you clicked "Choose File", you get the "Take Photo or Video / Choose Existing / Cancel" dialog. After iOS9 update, the "Choose File" is no longer working properly. When clicked, you no longer get the "Take Photo or Video / Choose Existing" dialog, instead, you get the "Cancel" dialog that does not go away until you close the app. Two notes:

  • 我在iPhone上的Safari和Chrome上查看了相同的index.html页面,并且一切正常.

  • I viewed the same index.html page from Safari and Chrome on iPhone, and everything works fine.

相同的PhoneGap应用程序在装有iOS8的iPhone上可以正常使用.

The same PhoneGap app works fine on an iPhone with iOS8.

是什么原因导致上述错误?

What is causing above bug?

谢谢.

推荐答案

截至2015年11月2日,Cordova支持iOS 9

As of Nov 2, 2015, iOS 9 is supported by Cordova

Apache Cordova iOS 3.9.2
http://cordova.apache.org /announcements/2015/11/02/cordova-ios-3-9-2.html

Apache Cordova iOS 3.9.2
http://cordova.apache.org/announcements/2015/11/02/cordova-ios-3-9-2.html

Phonegap Build 集成需要几天的时间.

It will be a few days before Phonegap Build as it integrated.

## 1.不支持iOS9! ##

## 1. No support for iOS9 YET! ##

PhoneGap Build iOS 9支持状态

此时,向Cordova Bug存储库报告了4个bug.截至该日期,您的问题尚未出现在存储库中.

At this point in time, 4 bugs are reported to the Cordova Bug repository. Your issue does not appear in the respository - as of this date.

  • 4个错误- https: //issues.apache.org/jira/browse/CB-9684?jql=text%20~%20%22iOS9%22
  • 1个错误- https://openradar.appspot.com/22186109

    • 4 bugs - https://issues.apache.org/jira/browse/CB-9684?jql=text%20~%20%22iOS9%22
    • 1 bug - https://openradar.appspot.com/22186109

      无论您使用的是什么,如论坛帖子所述,直到Cordova-iOS 4.0.0才正式支持iOS 9.这意味着,如果您发现了一个错误,则必须-创建变通方法,或者等到得到正式支持后, OR 向cordova提交错误报告, OR 等到别人创造了解决方法.

      Regardless, of what you are using, as the forum post states, iOS 9 is not officially supported until Cordova-iOS 4.0.0. This means, if you encouter a bug, you must - create a work around, or wait until it is officially supported, OR file a bug report with cordova, OR wait until someone else creates a work around.

      这篇关于在iOS9上从PhoneGap 5.2.0输入文件-不再起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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