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
@vsri1991 Do you have a sample app which can be looked into?
@AnubhavRanjan Thank you for reply.
Solution Attached with this reply.
Please check and let me know where i need to correct.
Same code written in Android.
Please help me.
Thank you
@AnubhavRanjan Thank you for reply.
Solution Attached with this reply.
Please check and let me know where i need to correct.
Same code written in Android.
Please help me.
Thank you
Please let me know when can i expect answer
@vsri1991 I see that you have already filed an issue against Xamarin.Auth GitHub repo.
https://github.com/xamarin/Xamarin.Auth/issues/349
Given that they have asked for a sample, can you share the sample link to them so that they can look into it much faster?
@AnubhavRanjan Thank you for reply.
I saw and i shared the zip file with https://github.com/xamarin/Xamarin.Auth/issues/349.
But as of now i did not get any response from them because they put my issue on low priority.
If you have any solution please help me.
Thanks