Cordova InAppBrowser插件在iOS上显示空白屏幕 [英] Cordova InAppBrowser plugin shows blank screen on iOS

查看:78
本文介绍了Cordova InAppBrowser插件在iOS上显示空白屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经对stackoverflow进行了认真的搜索,但是没有结果.许多类似的问题,但没有人提供我需要的解决方案.

I've done some serious searching on stackoverflow, but no result. A lot of similar issues, but no one has the solution that I need.

我的问题是:我正在开发一个使用InAppBrowser插件的ios cordova应用程序.

My problem is: I'm developing a ios cordova app that make use of the InAppBrowser plugin.

每当我直接在iPhone上通过xcode运行该应用程序时,它就可以正常工作.

Whenever I run the app from xcode directly on my iPhone, it works fine.

每当我在Mac上的模拟器中通过xcode运行该应用程序时,它就可以正常工作.

Whenever I run the app from xcode in a simulator on my mac, it works fine.

每当我将软件包上载到appstore并通过Testflight运行该应用程序时,InAppBrowser都会打开,但只显示白屏,底部带有完成"按钮(但无错误消息).而且我不知道如何调试它.

Whenever I upload the package to the appstore and run the app through Testflight however, the InAppBrowser opens, but only shows a white screen with a Done button at the bottom (but no error messages). And I have no clue how to debug this.

我已经对内容安全政策进行了几处更改,我已经尝试过对config.xml(< allow-intent> < allow navigation> < access origin ="*"/> ),但没有任何变化.

I've already made several changes to the Content Security Policy, I already tried making changes to config.xml (<allow-intent>, <allow navigation>, <access origin="*" />), but nothing changes.

我正在使用cordova ios 5.0.0,InAppBrowser 3.0.0,Cordova 9.0.0

I'm using cordova ios 5.0.0, InAppBrowser 3.0.0, Cordova 9.0.0

一个好建议,有人吗?

推荐答案

我在一个干净的环境下重新创建了整个项目,再次添加了ios平台,再次添加了所有插件,并复制了我的html/css/js文件,现在有用.科尔多瓦/平台/插件之间可能未对齐.有趣的是,它可以在本地和模拟器中工作,但不能在Testflight和生产环境中工作.

I recreated the entire project with a clean environment, added the ios platform again, added all the plugins again, copied my html/css/js files back and now it works. Probably there was a misalignment somewhere between cordova / platform / plugins. Funny though, that it worked locally and in a simulator, but not in Testflight and production.

这篇关于Cordova InAppBrowser插件在iOS上显示空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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