Reputation: 51
I'm using this code sample to load a page with https protocol, but I'm unable to make it work: https://github.com/TheRealAdamKemp/AuthenticatedWebView
I'm using "https://www.google.com" as web page but nothing. I've also tried to add App Security Permission in Info.plist. I always get a blank page.
Can anyone explain to me why?
Upvotes: 1
Views: 28822
Reputation: 129
you need to give permission for AppTransportSecurity(ATS). So that go to your info.plist and, add the permission. Note : inside a main dict tag paste given code
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
Upvotes: 0
Reputation: 1232
If you are responding to the WebView.Navigating event, be sure to not set its args.Cancel to true if the page loaded is the WevView.Source. The iOS implementation of WebView.Navigating fires when the WebView.Source is loaded but the Android implementation does not. If you set args.Cancel to true when the page in question is the WebView.Source, the WebView will be blank.
Upvotes: 5