Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

WebView not showing some pages

$
0
0

A little background: I have an OAuth2 flow for a website (visual studio online) implemented for WP and now I'm porting the thing to x.forms. Obviously, the WP version uses WebBrowser while x.forms uses WebView component for the consent screen. Everything else (getting tokens, generating URLs with proper secrets etc.) is handled by PCL-based engine and this the same in both scenarios.

The workflow itself in the WP implementation involves creating a URI, passing the URI to the WebBrowser component which does its thing and then fetching the result. The Uri contains a URL https://app.vssps.visualstudio.com/oauth2/authorize?[standard_oauth_stuff] which in the process gets redirected to something like https://app.vssps.visualstudio.com/_signin?realm=app.vssps.visualstudio.com&reply_to=[original url]&[bunch of other crap here] to show the actual login and consent screen.

The problem is that the WebView version only shows blank page. The WebView control navigates to the original url, then receives the redirect, then shows a blank page and that's it (I checked through the PropertyChanged event and nothing is happening to the webview once it gets the redirect and runs through the PropertyChanged event with Source as PropertyName).

So... why?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>