# WebAuthProvider.login(account) throws "Not Found." only on Samsung S20 (Android 12)

**URL:** <https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681>\
**Category:** Get Help\
**Tags:** android, login, auth0\
**Created:** [May 18, 2022, 7:53pm UTC](https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681 "2022-05-18T19:53:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![justinas.vilimas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/justinas.vilimas/32/33863_2.png) [@justinas.vilimas](https://community.auth0.com/u/justinas.vilimas)\
**Post date:** [May 18, 2022, 7:53pm UTC](https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681/1 "2022-05-18T19:53:39Z")

</div>

Please include the following information in your post:

- Which SDK this is regarding: Android auth0 SDK
- SDK Version: 2.7.0
- Platform Version: Android 12 (API levels 31, 32)
- Code Snippets/Error Messages/Supporting Details/Screenshots:

When calling WebAuthProvider.login(account) the login form appears correctly and after enterring my login information and proceeding, the page shows “Not found.” at the top left corner and it does not return to the app. This scenario happens only on my Samsung S20 (running Android 12, kernel 4.19.87-24107789, build SP1A.210812.016.G980FXXUEFVDB).

I’ve tried multiple Android simulators running Android 12, 11 and 10 – and all login correctly and return to the app as expected. The same code also works on an older Android device running Android 7.

I was able to reproduce the issue only on the S20.

I’ve tried reinstalling the app, rebooting the device and clearing Chrome’s cookies but nothing helped, unfortunately.

Any tips to solve this are greatly 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:** [May 21, 2022, 1:15am UTC](https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681/3 "2022-05-21T01:15:17Z")

</div>

Hi there @justinas.vilimas welcome to the community!

> [@justinas.vilimas](#):
>
> I was able to reproduce the issue only on the S20.

Super peculiar it’s only reproducible on the 1 device 🤔 The only other time I can recall seeing something similar the issues was related to `auth0Scheme`:

> [@Android "not found" error when using social login](https://community.auth0.com/t/android-not-found-error-when-using-social-login/82070):
>
> 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 o…

Just throwing out ideas here, but is there another app with a similar configuration installed on the device? Do you run into the same issue using one of our [sample apps](https://github.com/auth0-samples/auth0-android-sample)?

Let us know!

---

<div class="post-metadata">

**Author:** ![justinas.vilimas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/justinas.vilimas/32/33863_2.png) [@justinas.vilimas](https://community.auth0.com/u/justinas.vilimas)\
**Post date:** [May 23, 2022, 4:24pm UTC](https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681/4 "2022-05-23T16:24:17Z")

</div>

Hi tyf,

Thanks for the tips. I’ve tried the Android sample app and getting the same “Not Found.” message after authorizing on the S20. Could it be related to wrong configuration on our Auth0 account?

 ![Screenshot_20220523-191453_Chrome_small](https://global.discourse-cdn.com/auth0/original/3X/e/e/eee6be9f7400d0dac9e8a4079b14cb23f1ee3f24.jpeg)

Would be strange since authentication works on iOS and non-S20 Android devices.

You mentioned `auth0Scheme`. We’re using “https” as our `auth0Scheme` – could this be the cause?

Thanks again.

---

<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 23, 2022, 7:17pm UTC](https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681/5 "2022-05-23T19:17:21Z")

</div>

No problem, happy to help! Thanks for following up here 😄

> [@justinas.vilimas](#):
>
> Would be strange since authentication works on iOS and non-S20 Android devices.

I agree with you on this in that it would be surprising to me if this was related to your Auth0 configuration given it works everywhere else.

> [@justinas.vilimas](#):
>
> You mentioned `auth0Scheme` . We’re using “https” as our `auth0Scheme` – could this be the cause?

Out of curiosity, did you change this in the sample app? It’s set to use `auth0Scheme: "demo"` by default. In testing on my personal device (Pixel 5a Android 12) I run into the `not found` issue when I set the scheme to https, but it works fine if I set it to a custom scheme like “demo” which the sample apps use by default. This is helpful:

> [@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…

---

<div class="post-metadata">

**Author:** ![justinas.vilimas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/justinas.vilimas/32/33863_2.png) [@justinas.vilimas](https://community.auth0.com/u/justinas.vilimas)\
**Post date:** [May 24, 2022, 6:49pm UTC](https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681/6 "2022-05-24T18:49:16Z")

</div>

Thanks tyf,

Changing the auth0Scheme solved my problem! 🥳 Looks like the newer Android versions do not like auth0Scheme to be set to “https”.

A suggestion: updating your official documentation might help for future developers, right now it explicitly states to use “https” for auth0Scheme (which I was following initially when integrating Auth0 into our app). Here specifically: [Auth0.Android](https://auth0.com/docs/libraries/auth0-android#configure-for-universal-login)

Anyway, huge thanks!

---

<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 25, 2022, 6:06pm UTC](https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681/7 "2022-05-25T18:06:40Z")

</div>

Happy to help!

> [@justinas.vilimas](#):
>
> Changing the auth0Scheme solved my problem! 🥳 Looks like the newer Android versions do not like auth0Scheme to be set to “https”.

That’s good to know! Thanks for confirming here 😄 I also agree that the documentation around the `auth0Scheme` could be improved - Appreciate the feedback!

---

<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:** [June 9, 2022, 6:07pm UTC](https://community.auth0.com/t/webauthprovider-login-account-throws-not-found-only-on-samsung-s20-android-12/83681/8 "2022-06-09T18:07:30Z")

</div>

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