Cordova InAppBrowser plugin shows blank screen on iOS

雨燕双飞 提交于 2021-01-29 05:09:08

问题


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.

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

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

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

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.

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.

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

A good suggestion, anyone?


回答1:


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.



来源:https://stackoverflow.com/questions/55983123/cordova-inappbrowser-plugin-shows-blank-screen-on-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!