Error of "Not found" on Callback URL in Android Application

Problem statement

Auth0 has been integrated into an Android app. When an attempt is made to log in to the app, a Not found message appears in the top left corner of an otherwise blank page.

Cause

The URL of this error page is the callback URL included in the allowed callback list as per the instructions. However, it is using the https scheme and not a custom scheme for mobile. Mobile browsers tend to block redirects when using an https scheme leading to a "Not found " page.

Solution

Instead of using an https scheme in the callback URL, any custom scheme that is not http or https should work. A unique scheme would be ideal.

For example, use a custom scheme like “demo://”, as used in our Android quickstart. Then check the application code to make sure that the property “.withScheme(“demo”)” is set within login functions as shown in this sample code on Github.

Also be sure to include " " in the AndroidManifest.xml set, as shown in this sample manifest file on Github.

Related References