title: Redirect url for Google OAuth Android
body: <p>Never really worked with OAuth, trying to implement it now, I want to get access token and profile data from google and facebook. Using Xamarin.Auth. </p>
  
  <p>With Facebook there're no problems, I specify "<a href="http://www.facebook.com/connect/login_success.html" rel="nofollow">http://www.facebook.com/connect/login_success.html</a>" as redirect url and after I login it goes back to the activity I was before. </p>
  
  <p>However with Google it's not as smooth - couldn't find any similar to facebook login success pages, somewhere found suggestion to use "<a href="https://www.googleapis.com/plus/v1/people/me" rel="nofollow">https://www.googleapis.com/plus/v1/people/me</a>" - added it to redirect url white list, however after sign in I would get <code>"Redirect_url_mismatch" A native application: application name</code>according to their documentation I should use "my.package.name:" and again I added that to redirect url white list, attempted to sign in, this time after sign in screen I get to second screen where I need to confirm read permissions and after that I get very short error something like "com.my.package:/?oauthparameterX=value1...." and get redirected to permission screen again.</p>
  
  <p>Here's my complete OAuth2Authenticator:</p>
  
  <pre><code>var auth = new OAuth2Authenticator(
              clientId: SocialIds.GooglePlusId,
              clientSecret: SocialIds.GooglePlusSecret,
              scope: OAuthUrl.GoogleScope,
              authorizeUrl: new Uri(OAuthUrl.GoogleAuthorize),
              redirectUrl: new Uri("https://www.googleapis.com/plus/v1/people/me"),
              accessTokenUrl: new Uri("https://accounts.google.com/o/oauth2/token"),
              getUsernameAsync: null);
              auth.AllowCancel = false;
  </code></pre>
  
  <p>urls:</p>
  
  <pre><code>public static string GoogleAuthorize = "https://accounts.google.com/o/oauth2/auth";
  public static string GoogleScope = "https://www.googleapis.com/auth/userinfo.email";
  public static string GoogleRedirect = "https://www.googleapis.com/plus/v1/people/me";
  public static string GoogleUserInfo = "https://www.googleapis.com/oauth2/v1/userinfo?access_token={0}";
  </code></pre>