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

Last Updated: Nov 4, 2024

Overview

The Auth0 has been integrated into an Android app. When attempting to log in to the application, a 'Not found ’ message appears at the top left corner of an otherwise blank page.

Applies To

  • Application
  • Callback URL
  • Android

Cause

The URL of this error page is the callback URL included in the allowed callback list as per the instructions. However, it uses 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:

  1. Use a custom scheme like “demo://”, as used in the Android quickstart.
  2. 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.

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

Related References