How to redirect back to APP After login with Google

HI All,
I am implementing google sign in in Xamarin.Android.
My Code without "isUsingNativeUI"
var Auth = new OAuth2Authenticator(
"720081367695-0pjsbd4cdq4111111111a6bgde.apps.googleusercontent.com",
"2Am5qddQ2M6p1111111111",
"email",
new Uri("https://accounts.google.com/o/oauth2/auth"),
new Uri("https://meww.net/oauth2callback"),
new Uri("https://www.googleapis.com/oauth2/v3/token"));
Auth.Completed += (sender1 , eventArgs)=>
{

                        };
                        Auth.Error += Auth_Error;
                        var ui = Auth.GetUI(this);
                        StartActivity(ui);

I am getting disallowed_user Agent page if i am including
var Auth = new OAuth2Authenticator(
"720081367695-0pjsbd4cdq4111111111a6bgde.apps.googleusercontent.com",
"2Am5qddQ2M6p1111111111",
"email",
new Uri("https://accounts.google.com/o/oauth2/auth"),
new Uri("https://meww.net/oauth2callback"),
new Uri("https://www.googleapis.com/oauth2/v3/token"),isUsingNativeUI:true);
Auth.Completed += (sender1 , eventArgs)=>
{

                        };
                        Auth.Error += Auth_Error;
                        var ui = Auth.GetUI(this);
                        StartActivity(ui);

Everything works fine but redirect url is opening webview and i am not able to get back on app in Xamarin.Android.

Please help me !!

Thank you.

Answers

Sign In or Register to comment.