iOS WebView doesn't use https
See original GitHub issueVersion
1.0.0-beta.6
Platfrom
iOS built application
Issue
iOS localhost is loaded with http
protocol.
It results in issue with some services, which stricly requring secure connection.
For instance, when navigation.geolocation.watchPosition()
used, it results in following error:
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:12 (3 by maintainers)
Top Results From Across the Web
ios - My webview load only https but i want http websites. Is ...
My webview load only https but i want http websites. ... How do I load an HTTP URL with App Transport Security enabled...
Read more >UIWebView doesn't load anymore | Apple Developer Forums
Hey, my UIWebView does not load the website anymore. Yesterday everything worked very well and now after I updated XCode it doesn't show...
Read more >Opening non HTTPS sites in WebView in React Native
To access HTTP sites inside our WebView, we need to open the project in Xcode and open the Info.plist file. In the list...
Read more >The Power of WebViews in Flutter - Medium
Incorporating the WebView plugin into your app is extremely simple. It's just a widget like any other: WebView(initialUrl: 'https://flutter.io') .
Read more >OAuth “Sign In With Google” in a WkWebView | Chris Riccomini
The app was a WkWebView that loaded https://want.app. ... Google doesn't want users authenticating inside embedded browsers ... webView.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The native geolocation plugin works fine, it’s the webview implementation what doesn’t work (
navigation.geolocation
) because it requires https to work.We use
GCDWebServer
as the web server and it doesn’t support https, nor it’s going to support it in the future, so to “fix” this we will have to use a different web server with https support, or use a custom scheme instead ofhttp:
orhttps:
, but that’s only supported on iOS 11+, and I’m not really surenavigation.geolocation
will work with a custom scheme.Closing it for now as the rest of issues tagged with feature request tag. If you are interested in https feature add the +1 reaction (thumbs up)on the issue as we use it to gauge interest on feature request issues.
@ajayak Basically, install Safari Tech Preview, launch it, enable Develop menu, then launch Xcode and run your app in the simulator.
After that you should see in Safari Develop menu entry
iPhone Simulator
, and there should be your launched simulator instance. Just run it and you’ll see devtools for launched WebView.