I’m using Auth0 for login with database and social. Normal database works fine.
I have setup a new client in Auth0 of type ‘Native app’ and the callback URL I’m using is:
https://spnkdev.eu.auth0.com/android/packagename/callback
I’ve tested this in my app and the custom login demo given by Auth0. This is the flow:
- Click login with google button
- Get asked to choose which app/browser to open with and I choose chrome
- Chrome opens and i fill out the data and after that it starts redirecting
- While loading it asks me what to open with again, giving the same options + option to open with my app.
If I choose chrome again i get a new tab which says CANNOT GET {callback url}
.
If I choose my app it goes back to the app but does nothing and the chrome tab above also appears but goes to the background.
From the Auth0 Dashboard logs I can see the logins are done successfully and the login seems to work fine on the browser but not on the app. It seems there are some problems with the redirect. I’ve also tested with emulators and physical devices and the issue remains.
The code used is the same available on their custom login demos. I’ve tried with default auth0 credentials and my credentials for google.
For what is worth in the android studio monitor when I click the login button I also get this info:
V/CallbackHelper: The Callback URI is: https://spnkdev.eu.auth0.com/android/packagename/callback