Search code examples
androidauthenticationwebviewgoogle-pluslinkedin-api

Do google plus and linkedIn shared login allow login from android app webview?


We have a website and provide shared login with linkedIn and google plus accounts. Do google plus and linkedIn allow login from android app webview? Or we have to implement native login via sdk and server provides APIs to complete login process?

Thanks in advance! Leon


Solution

  • I managed to make google plus and linkedIn login provided by website work in webview. The key point is that google login javascript opens a new window when initializing a session for authentication with google server. I create a new webview for google login page. We need to keep website login page open which initialises the google authentication, and once google authenticates user successfully, we close the new webview . After that website login webview receives callback and proceed user to login. It is similar to linkedIn and FB login flow.