-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank screen on iOS: flutter_webview_plugin: ^0.3.0+2 #239
Comments
hi @willvlad thanks for reporting an issue. This works for me on 11.3 could you update the simulator and check if that the reason? Also please provide |
Have re-downloaded the simulator again yesterday. 11.2 is the top version for my xcode . Hasn't helped unfortunately. Here is the doctor:
|
Check the url you tried to open with this plugin. |
I've got the same issue. The links are in https://, and it works on Android, but only selected links in iOS works. |
Same here. Running iOS 12.1 on iPhone 7 is blank screen (except on short, simple url) where Androids work fine. I'm guessing it's either something with a query parameter on the url or javascript on the page. EDIT: I have a native iOS app with a webview. The company I work for requires their proprietary login which is in a webpage at a url with query parameters appended. I am certain that is the problem here as if I try loading any other url without query parameters using your library, it works fine. Let me know if you want the fix, it's 10 lines of code ;) |
hi @nhojjava you're more than welcomed to submit your PR! I've seen this issue few times but didn't reproduce it myself. If you have fix that would be great! |
@nhojjava please add the fix. I am trying to open this link on iOS and it shows blank screen: http://www.erzabtei-beuron.de/schott/schott_anz.php?file=jk34/Mittwoch.htm |
same blank screen |
I'm having a similar issue with this in IOS. I managed to get it working as a fullscreen widget where I'm using the scaffolding features to decorate the screen. However, if I embed the view into another page as a sub widget the screen is blank on IOS. The plugin works perfectly in Android and is able to embed the Webview into a subscreen. Just not IOS. |
me too |
On further inspection, I found that the server was updating http://... url link to https://.... So I changed the http:// link to https:// on the client (flutter app) itself... now I don't see anymore blank screen. No more blank screen on iOS.
|
I also had this. So it is reported for quite a month? |
The issue persists even after upgrading to iOS 12.1 and using https:// |
Try to add an userAgent which works for me. const userAgent =
'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Mobile Safari/537.36'; |
@BANG88 How to add? |
what about updating Info.plist ? This worked for me
|
@quangas Suggested work around is working for me. |
@quangas Work around works for me. Thanks. |
@quangas it works! |
@quangas Doesn't work for me :( I'm using iOS 12.2. Downloaded this repo and ran the example. Click on
Flutter doctor
🎉 🎉 UPDATE - FIXED 🎉 🎉 It's nothing to do with flutter_webview_plugin. |
I think we should update docs then, will close after updating. |
related: #239 |
I have the same problem. |
Make sure your iPhone settings allows for HTTP services - you can find them under Settings - Developer. Hope this helps. |
It works on develop. For release you need to add |
How to resolve this issue? |
The text was updated successfully, but these errors were encountered: