# Android "not found" error when using social login

**URL:** <https://community.auth0.com/t/android-not-found-error-when-using-social-login/82070>\
**Category:** Get Help\
**Tags:** sdk:java, auth0-sdk, android, redirect, login\
**Created:** [April 20, 2022, 2:25pm UTC](https://community.auth0.com/t/android-not-found-error-when-using-social-login/82070 "2022-04-20T14:25:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lizfltn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lizfltn/32/35480_2.png) [@lizfltn](https://community.auth0.com/u/lizfltn)\
**Post date:** [April 20, 2022, 2:25pm UTC](https://community.auth0.com/t/android-not-found-error-when-using-social-login/82070/1 "2022-04-20T14:25:06Z")

</div>

Which SDK this is regarding: com.auth0.android:auth0:2.7.0  
Running on Android phones version 29 and up

I am having trouble with logging in using Auth0’s social login (Fitbit) inside a Chrome custom tab on Android. When the social login goes to redirect back to my app using my specified Auth0 callback URL, it goes to a page that says “Not found” in plain text with no other information.

My specified callback URL is https://{my-tenant}.eu.auth0.com/android/{my-android-package}/callback. When I open the failing URL in Chrome proper, it looks like this: https://{my-tenant}.eu.auth0.com/android/{my-android-package}/callback?code=L…k&state=J…E (information redacted by the …s).

I am using a CredentialsManager to hold the credentials that should be returned by the login process.

I have tried the following to rectify the problem:

- Clearing the browser cache (Chrome in my simulation, Firefox on my physical phone)
- Clearing the CredentialsManager on Activity creation (which then triggers the login)
- The problem also occurs when using the Auth0 standard login

Any help in getting my app to login correctly is appreciated!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 21, 2022, 12:20am UTC](https://community.auth0.com/t/android-not-found-error-when-using-social-login/82070/3 "2022-04-21T00:20:40Z")

</div>

Hey there @lizfltn!

Thanks for the detailed description of the issue you’re seeing 😃

> [@lizfltn](#):
>
> The problem also occurs when using the Auth0 standard login

Considering this is happening without a social provider involved, I don’t think there’s an issue there - This is good news as that can get tricky!

I believe this is related to the defining your app’s `auth0Scheme` as `https` like:

```auto
manifestPlaceholders = [auth0Domain: "@string/com_auth0_domain", auth0Scheme: "https"]

```

Instead, you might try setting this to a custom one (In our sample apps we use `demo` for example). Here are some further resources on this:

> [@Redirection not working with Android App Links when logging out](https://community.auth0.com/t/redirection-not-working-with-android-app-links-when-logging-out/34721/6):
>
> Hi @oussamah, In Android devices this issue can happen sometimes if the https schema is set to be handled by default using a browser. In some devices it will prompt the user with a “Open application with…” and give you a list of apps that you can open it with. If you happen to select the browser, it will try to open ‘[https://subdomain.eu.auth0.com/android/com.{applicationId}/callback](https://subdomain.eu.auth0.com/android/com.%7BapplicationId%7D/callback)’ which will fail since what you want is really to return to the app. Changing the scheme will prevent the brow…

> **[GitHub - auth0/Auth0.Android: Android toolkit for Auth0 API](https://github.com/auth0/Auth0.Android#a-note-about-app-deep-linking)**
>
> Android toolkit for Auth0 API. Contribute to auth0/Auth0.Android development by creating an account on GitHub.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![lizfltn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lizfltn/32/35480_2.png) [@lizfltn](https://community.auth0.com/u/lizfltn)\
**Post date:** [April 21, 2022, 12:28pm UTC](https://community.auth0.com/t/android-not-found-error-when-using-social-login/82070/4 "2022-04-21T12:28:29Z")

</div>

Thank you! Using a custom scheme (in my case, “app”) seems to have fixed my problem!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 22, 2022, 6:40pm UTC](https://community.auth0.com/t/android-not-found-error-when-using-social-login/82070/5 "2022-04-22T18:40:47Z")

</div>

Awesome! That’s great to know and thanks for confirming 😄

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 7, 2022, 6:41pm UTC](https://community.auth0.com/t/android-not-found-error-when-using-social-login/82070/6 "2022-05-07T18:41:24Z")

</div>

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