无法在iOS的输入表格框(键盘未显示)中输入文字。输入框似乎没有响应,因为没有显示提示也没有键盘launced(APP)。这适用于Cordova Android(模拟器和APP),以及OSX,Android和iOS上的每个标准浏览器。
<html>
<head>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: ; style-src 'self' 'unsafe-inline' ; media-src *;script-src 'self' 'unsafe-inline' 'self' *" />
<title>Input Test</title>
</head>
<body>
<form name="form1" id="form1">
<input name="auto" type="text" id="idauto" style="-webkit-user-select: auto;"><br>
<input name="text" type="text" id="idtext" style="-webkit-user-select: text;"><br>
<input class="newinput" onclick="this.focus();" type="email" id="mix" name="email" value="" autocorrect="off" autocapitalize="off" required="" placeholder="Enter E-mail address">
</form>
<script src="cordova.js"></script>
</body>
</html>
***也尝试了一次输入,结果相同,因此显示多个变体的行为相同。
科尔多瓦:6.3.1
模拟器:iPhone-SE,10.1模拟器(通过iTunes Connect在实际的iOS APP中验证了相同的行为,因此坚持使用模拟器来尝试修复)。
我的Cordova config.xml首选项是:
<preference name="permissions" value="none" />
<preference name="webviewbounce" value="false" />
<preference name="detect-data-types" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="android-minSdkVersion" value="16" />
<preference name="android-targetSdkVersion" value="22" />
<preference name="loadUrlTimeoutValue" value="700000" />
<preference name="SplashScreenDelay" value="2000" />
<preference name="SplashScreen" value="screen" />
<preference name="StatusBarOverlaysWebView" value="false"/>
<preference name="StatusBarBackgroundColor" value="#000000"/>
<preference name="StatusBarStyle" value="lightcontent" />
<!-- iOS only preferences -->
<preference name="AppendUserAgent" value="My Browser" />
<preference name="AllowInlineMediaPlayback" value="true"/>
<preference name="BackupWebStorage" value="local"/>
<preference name="CordovaWebViewEngine" value="CDVUIWebViewEngine" />
<preference name="deployment-target" value="7.0" />
<preference name="EnableViewportScale" value="true"/>
<preference name="ErrorUrl" value="myErrorPage.html"/>
<preference name="GapBetweenPages" value="0"/>
<preference name="MediaPlaybackAllowsAirPlay" value="false"/>
<preference name="MediaPlaybackRequiresUserAction" value="true"/>
<preference name="OverrideUserAgent" value="Mozilla/5.0 My Browser" />
<preference name="PageLength" value="0"/>
<preference name="PaginationBreakingMode" value="page"/>
<preference name="PaginationMode" value="unpaginated"/>
<preference name="SuppressesIncrementalRendering" value="true"/>
<preference name="SuppressesLongPressGesture" value="true" />
<preference name="Suppresses3DTouchGesture" value="true" />
<preference name="target-device" value="universal" />
<preference name="TopActivityIndicator" value="white"/>
<preference name="UIWebViewDecelerationSpeed" value="fast" />
Cordova插件(已安装,因为此示例是来自更大项目的片段)。
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.1.0 "Whitelist"