Phonegap - 在 webview 中加载外部 URL 在发布模式 apk 中不起作用
Phonegap - load external URL in webview not working in release mode apk
我正在尝试在我的 index.html deviceIsReady():
中使用下面提到的代码在 PhoneGap webview 中加载外部 URL
window.open('https://google.com', '_self ', 'location=yes');
并在 config.xml 中:
<content src="index.html" />
<allow-navigation href="https://google.com/*" />
当代码 运行 使用 PhoneGap 桌面应用程序并在 Android 移动设备使用 Phonegap Adnroid 应用程序查看时,上述 URL 工作正常。
但是,当通过在设备设置中启用 Unknown source
选项,使用从 PhoneGap 云和 运行 在 Android 设备上生成的 .apk 在发布模式下构建相同的代码时,空白页面显示时没有任何错误消息。
我觉得我缺少一些许可?谁能帮我解决这个问题?
因为我试图在 webview 中加载外部 URL 我不得不包含下面我忘记包含的插件:
<plugin name="cordova-plugin-inappbrowser">
我正在尝试在我的 index.html deviceIsReady():
中使用下面提到的代码在 PhoneGap webview 中加载外部 URLwindow.open('https://google.com', '_self ', 'location=yes');
并在 config.xml 中:
<content src="index.html" />
<allow-navigation href="https://google.com/*" />
当代码 运行 使用 PhoneGap 桌面应用程序并在 Android 移动设备使用 Phonegap Adnroid 应用程序查看时,上述 URL 工作正常。
但是,当通过在设备设置中启用 Unknown source
选项,使用从 PhoneGap 云和 运行 在 Android 设备上生成的 .apk 在发布模式下构建相同的代码时,空白页面显示时没有任何错误消息。
我觉得我缺少一些许可?谁能帮我解决这个问题?
因为我试图在 webview 中加载外部 URL 我不得不包含下面我忘记包含的插件:
<plugin name="cordova-plugin-inappbrowser">