React Native - Issues with Application ID and Custom Scheme on Android

Overview

When setting up a custom scheme, the login succeeds, but the callback is not received by the React Native Android application. Invalid URL scheme errors are seen, and the application hangs after authentication and does not process the callback.

Cause

The Auth0 React Native SDK currently requires that the application ID is in lowercase and does not contain any special characters.

Solution

If an application ID with uppercase and/or special characters must be used, a custom redirect activity needs to be specified:

Along with the configuration for using a custom scheme:

Note that in order to result in a valid URL, the custom scheme should be modified to have no special characters, and all lower case.