问题
I was trying to implement login with Google and Facebook. I have successfully implemented Facebook login with Xamarin.Auth but in the Google Login I am getting error disallowed_useragent, I know Google has changed their policy and will not allow the login using WebView
but is there any other way to implement Login with Google
in Xamarin.Forms (Portable)
?
Thank You.
回答1:
It's a new Google restriction, they do not allow using their login interface in embedded webviews anymore. Therefore you can implement authorization for your app in "Native Views" - external browsers (chrome tabs, safari etc). They will return result back to your app.
The working example for Google is here: Authenticating Users with an Identity Provider
来源:https://stackoverflow.com/questions/42884941/xamarin-auth-getting-disallowed-useragent-error-xamarin-forms