question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS WebView doesn't use https

See original GitHub issue

Version

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:

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jcesarmobilecommented, Sep 14, 2018

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 of http: or https:, but that’s only supported on iOS 11+, and I’m not really sure navigation.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.

1reaction
ArmorDarkscommented, Sep 10, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found