【发布时间】:2013-12-27 15:13:44
【问题描述】:
我开发了一个 phonegap 应用程序(版本 2.1.0),它在我的 Android 模拟器和设备上运行良好(当我将 APK 从计算机物理复制到设备时)。但是,如果我将此 APK 上传到 google play,然后安装在我的同一台设备上,它会显示一个白屏,并且在某些手机中会出现错误“https://example.com 网页不可用”。
这是用例 -
<a href="https://example.com" rel="external" data-role="button">Connect</a>
这会在模拟器、设备上打开屏幕,但当我从 Google Play 下载时显示白屏。
我的PhoneGap config.xml 有
<access origin="http://127.0.0.1*"/> <!-- allow local pages -->
<access origin="https://example.com" subdomain="true" />
<access origin="http://example1.com" subdomains="true" />
<access origin=".*"/>
【问题讨论】: