# Any clear guide on how to do Google sign-in with Lock for Android

**URL:** <https://community.auth0.com/t/any-clear-guide-on-how-to-do-google-sign-in-with-lock-for-android/83559>\
**Category:** Get Help\
**Created:** [May 17, 2022, 7:47am UTC](https://community.auth0.com/t/any-clear-guide-on-how-to-do-google-sign-in-with-lock-for-android/83559 "2022-05-17T07:47:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![admdizon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/admdizon/32/13075_2.png) [@admdizon](https://community.auth0.com/u/admdizon)\
**Post date:** [May 19, 2022, 12:34am UTC](https://community.auth0.com/t/any-clear-guide-on-how-to-do-google-sign-in-with-lock-for-android/83559/5 "2022-05-19T00:34:54Z")

</div>

Hi @ty.frith, so to clarify, the sample code you linked should be followed if I want to do a sign-in with Google? I saw this [post](https://community.auth0.com/t/google-sign-in-integration-in-android-app-simply-stopped-working/70975) in this forum that uses WebAuthProvider as well. But I also saw another post [here](https://community.auth0.com/t/how-to-add-google-sign-in-embedded-login/55960) in this forum saying native Google sign-in is not supported. Can you clarify what this means?

edit: I think I understand what is being meant by “native Google sign-in is not supported”–it just means that Google sign-in via embedded login (presumably with `loginWithNativeSocialToken`) is still not supported.

So now I tried tinkering with the sample repo and used our existing app’s client ID and domain (in development environment, of course). And specified that I want to redirect to Google sign-in via `withConnection("google-oauth2")`:

```kotlin
WebAuthProvider.login(account)
            .withConnection("google-oauth2")
           // ...

```

and sure enough a browser opens that redirects to Google, but I am greeted with an `error 400: redirect_url_mismatch`. The error seems to indicate that we need to add a redirect URI somewhere in the Google Cloud Console. Am I in the right direction?

Edit: I will just open another topic for my questions regarding WebAuthProvider. Will be marking @ty.frith 's answer as the solution.

---

_[View the full topic](https://community.auth0.com/t/any-clear-guide-on-how-to-do-google-sign-in-with-lock-for-android/83559)._
