I am trying to get the 00-login sample app (React Native with Twitter login) to work. The login is succeeding on the Twitter side (I know this mainly because I am getting an email from Twitter warning me about a login from a new device).
I am running the app on an Android emulator with ‘react-native run-android’.
The callback I have set (per the sample app instructions) in Auth0 application settings is:
At first glance everything seems fine. Can you let me know what version of React Native do you use? The error reads like it’s not configured correctly on the android side. Thanks in advance for providing more info!
It might be also because of the browser you use, which is not correctly redirecting URL with custom scheme. This should work fine on most common browsers. Can you also try on a different browser/Android phone?
I had tried it on a couple different emulators with the same result.
I tried it again on a real device and used the Chrome browser. This time login was successful (as before) but instead of callback failing it never left the “Redirecting you back …” page. I guess that’s an “improvement” but this would require the user to manually close the browser.
Thanks,
The android:scheme is missing the dollar sign. It should be:
<data
[...]
android:scheme="${applicationId}" />
If that doesn’t work (try it first), can you try replacing the two ${applicationId} occurrences with com.auth0sample? Sorry I’m asking you to try things blindly, but I’m having troubles with my Java VM at the moment so I can’t reproduce.