# Redirect user from native android to gmail autho0

**URL:** <https://community.auth0.com/t/redirect-user-from-native-android-to-gmail-autho0/70267>\
**Category:** Get Help\
**Created:** [September 26, 2021, 7:29am UTC](https://community.auth0.com/t/redirect-user-from-native-android-to-gmail-autho0/70267 "2021-09-26T07:29:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![huthefa.alfararjeh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/huthefa.alfararjeh/32/31940_2.png) [@huthefa.alfararjeh](https://community.auth0.com/u/huthefa.alfararjeh)\
**Post date:** [September 26, 2021, 7:29am UTC](https://community.auth0.com/t/redirect-user-from-native-android-to-gmail-autho0/70267/1 "2021-09-26T07:29:14Z")

</div>

Hello ,  
I am trying to support native logic in android/ios  
however it seems no way , but  
Current flow for gmail(sso) login  
app → author unverisal page → gmail → gmail page

is there any way to support flow like  
app → Gmail page

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [September 26, 2021, 4:34pm UTC](https://community.auth0.com/t/redirect-user-from-native-android-to-gmail-autho0/70267/2 "2021-09-26T16:34:42Z")

</div>

Hi @huthefa.alfararjeh ! Assuming that by “gmail” you mean “Google account”, you can set the `connection` parameter in the authorization request to bypass the Auth0 login page and go directly to the specified connection.

Android:

```auto
WebAuthProvider.login(account)
    .withConnection("google-oauth2")
    .start(this, callback)

```

Swift:

```auto
Auth0
    .webAuth()
    .connection("google-oauth2")
    .audience("your_api_identifier")
    .start { result in
        switch result {
        case .success(let credentials):
            print("Obtained credentials: \(credentials)")
        case .failure(let error):
            print("Failed with \(error)")
        }
    }

```

> **[GitHub - auth0/Auth0.Android: Android toolkit for Auth0 API](https://github.com/auth0/auth0.android#authenticate-with-any-auth0-connection)**
>
> Android toolkit for Auth0 API. Contribute to auth0/Auth0.Android development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 27, 2021, 8:01am UTC](https://community.auth0.com/t/redirect-user-from-native-android-to-gmail-autho0/70267/3 "2021-09-27T08:01:44Z")

</div>

Thanks for helping on this one Nico!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 12, 2021, 8:01am UTC](https://community.auth0.com/t/redirect-user-from-native-android-to-gmail-autho0/70267/4 "2021-10-12T08:01:50Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
