Open VovaK1 opened 3 years ago
Please check out native logs(e.g. Android studio) you probably have typo in your configuration
@NikitaAvraimov-okta Thanks for the reply. We can't even run login in sample-app from Okta website. Do you think the reason may be in the settings of the android studio or android configuration?
When I call the signInWithBrowser() method, nothing happens
We should see what`s shown at android studio Logcat in case you are experiencing this on android.
Please check your build.gradle
manifestPlaceholders = [
appAuthRedirectScheme: '{customUriScheme}'
]
{customUriScheme} has to be replaced with valid redirect uri
@NikitaAvraimov-okta in Logcat we can see this error:
No uri registered to handle redirect or multiple applications registered
Our {customUriScheme}
what we indicate is the name of our application. So this is a mistake?
@VovaK1 check out https://developer.okta.com/docs/guides/sign-into-mobile-app/android/define-callback/ e.g. if your redirectUri is redirectUri: 'com.okta.dev-XXXXX:/callback', customUriScheme should be something among these lines com.okta.dev-XXXXX
@VovaK1 You can hide your specific data and show the general pattern of your customUriScheme from build.gradle, most likely problem is there
@NikitaAvraimov-okta I tried com.okta.dev-19063038, also com.okta.dev-XXXXXXXX, but the redirect still doesn't work But I checked another library https://github.com/FormidableLabs/react-native-app-auth with com.okta.dev-19063038 scheme and redirect works well What am I doing wrong?
@VovaK1 Do you have both libraries installed? We experienced a similar problem when having both okta + react-native-app-auth installed. More details here
We have also experienced this issue only on android devices. Using some logs we have narrowed it down to a lot of huawei, xiaomi devices and rarely some samsung devices. We have also found that it doesnt like the default browser on these devices and the majority of the time if the user downloads and sets chrome as their default it works. Because its very hard to replicate this issue on our side we ended up working on a native login which is very annoying.
Hello everyone!
I'm submitting a:
Current behavior
When I call the
signInWithBrowser()
method, nothing happens, but only a warning appears:But if we are making a login from our application, with
signIn()
method then everything works well.Expected behavior
We need the user to be redirected to a browser on the Okta page, when he can enter credentials and be redirected back to the application.
Can anyone advise?