title: Error 400: redirect_uri_mismatch when distributing Xamarin Forms App
body: <p>I am trying to distribute my Xamarin Forms Android app via the Google Play Store in Visual Studio 2019.</p>
  <p>I follow this tutorial by Microsoft:
  <a href="https://docs.microsoft.com/en-us/xamarin/android/deploy-test/publishing/publishing-to-google-play/?tabs=windows" rel="noreferrer">https://docs.microsoft.com/en-us/xamarin/android/deploy-test/publishing/publishing-to-google-play/?tabs=windows</a></p>
  <p>I went through the steps of setting up a Google Developer Account as well as creating an application in the google dev console and an OAuth2 client.</p>
  <p>I then entered the Client ID and Client Secret into the form and tried to register. Instead of being forwarded to the authorization page, I saw this error:
  <a href="https://i.stack.imgur.com/whBex.png" rel="noreferrer">Error 400: redirect_uri_mismatch</a></p>
  <p>Unfortunately, I cannot just add the uri to the OAuth2 client, as the port changes every time I try to register button.</p>
  <p>So, how can I solve this issue?
  Can I somehow fix the port that Visual Studio/Xamarin Forms uses?
  Is there an entirely different approach?</p>
  <p>Your help is greatly appreciated.</p>