Forum Xamarin.iOS

WebView.Source.Url with query string

I am assigning an URL with parameters to a WebView:
webView.Source = new UrlWebViewSource
Url = localUrl + urlParams,
The URL in iOS is "// /var/containers/Bundle/Application/0AEF12BA-AA1C-4ED3-97D6-43C05D454FAF/"
The file index.html is not loaded. Sometimes I get the error NSURLErrorFileDoesNotExist.
The URL without parameters "// /var/containers/Bundle/Application/0AEF12BA-AA1C-4ED3-97D6-43C05D454FAF/" is loaded. So the index.html is available, so I guess the parameters are producing this issue.

The code worked until I updated XCode and Visual Studio for Mac.
In Android it is also working (with different path to the resource).

Any suggestions?


  • ColeXColeX Member, Xamarin Team Xamurai

    What is the parameter language=13&portal=1 used for ?

  • It is used to control which content is visible. But this is not the problem. The problem is, that the URL results in "File does not exist", but it exists and it worked for several years.

Sign In or Register to comment.