0

We are trying to display a URL in a webview in iOS and the page doesn't load, it only goes gray. I unfortunately can't share the Url. but it is an Https Url. It displays Google's website though.

We've added the NSAppTransportSecurity to the info.plist and are allowing ArbitraryLoads. We've also added the domain to NSExceptionDomains.

All the Webviews for iOS are making use of WKWebviews.

Any help will be greatly appreciated. Will provide as much info as I can, but as mentioned, I can unfortunately not share the Url.

*Edit: When I added the Url to the Brower on the iOS device, it did load. It just doesn't load on the device

Thank you

3
  • Does this url load in any other browser outside of the project? Commented Feb 25, 2020 at 13:36
  • Yes. It loads on Android devices and in a browser Commented Feb 25, 2020 at 13:50
  • Hi , first you can check whehter the WkWebview work with another url from other place ,such as : whether this url (learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/ats) can be show in iOS device . Commented Feb 26, 2020 at 3:35

1 Answer 1

2

If your URL have IP Address then you have to add your URL in NSExceptionDomains.

You can check the NSExceptionDomains here : App Transport Security

Please let me know if that might help or you are still facing the issue. Thanks

Sign up to request clarification or add additional context in comments.

3 Comments

THe Url is pointing to an azure hosted web app. One of those azurewebsite.net ones
Hope you tried to add in NSExceptionDomains .Also please check by adding https to the url and your hosting should be SSL secured.
We have tried adding exceptionDomains. Link is Https

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.