Opening the full version of the site in the WebView element on a smartphone?

Shandera 66 Reputation points
2022-01-19T13:00:42.463+00:00

Hello. I have a Xamarin.Forms application that displays a page on a website in a WebView element. But the site opens in a mobile version. On PC, there are browser plugins that make the site think that it was accessed from another device. Yes, and the browsers themselves can open the page in the full version. Please tell me, dear experts, how to open the full version of the site in the WebView element on an Android smartphone?

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. Philippe Levesque 5,836 Reputation points
    2022-01-19T15:20:23.843+00:00

    Hi

    For your request if the site detect a mobile viewer, and you dont need that, please try to set the User-Agent.

    An example can be seen there; https://stackoverflow.com/questions/35856266/webview-define-user-agent-on-every-request

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.