I’m running two native apps. 1 for iOS and 1 for Android and using the WebAuth like this in apps:
On android (similar on iOS)
Code:
WebAuthProvider.login(auth0)
//.withScheme("https") //- dont work on dev builds. How to solve that?
.withScheme("mycustomscheme")
.withAudience("……”)
.withScope("…….")
.start(…..)
build.gradle:
manifestPlaceholders += mapOf(
"auth0Domain" to "``my.domain.com``",
"auth0Scheme" to "mycustomscheme"
//"auth0Scheme" to "https" //- dont work on dev builds. How to solve that?
)
I’ve had the custom scheme for Android and iOS for years but now its recommended to move to AppLinks/UniversalLinks with https instead according to the last email from Auth0.
So i did that, setting up everything and it seems to work on production builds that is signed with my keystore on iOS.
But on dev builds (still same package name but not release-signed) the login fails all the time when i tested on Android, guess its because its not signed with the release keystore.
How are we supposed to handle this case? Cannot find anything about this when searching the community either
I would prefer to use the same scheme for production and dev builds so that I test the same as my real users. Is that possible?