-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signInWithBrowser() does not open browser in Android #421
Comments
Hi @nassimerrahoui, thanks for filing this bug. I will look into this soon and provide relevant updates on this issue. |
It is working now on IOS. But in Android, signInWithBrowser does not open browser even if i added this in app's build.gradle
|
I tested with an empty projet and it works, maybe it's a wrong configuration, I'll keep you informed of the cause. |
Can you inform us of the issue? @nassimerrahoui |
Solution which works for me : In Android folder built and build.gradle from app folder :
Then in createConfig use Important point : Be careful with useEffects, which can also hinder the opening of the Okta page. |
Will try this config out and give my updates |
For those who are not able to open browser in android, the value for the appAuthRedirectScheme should be the app id you used as the redirect uri before :/. For example if your redirect uri is - Then you need to use Thanks. |
This worked for me. After researching for almost 2 weeks I realized my scheme was http: Add this to you Android.manifest file:
This works if your scheme is http |
Describe the bug?
signInWithBrowser() does not open browser in Android without any error.
What is expected to happen?
Open browser to signIn in okta hosted widget.
What is the actual behavior?
When I launch my react native app, then click on signInWithBrowser() then nothing happen.
And my config is correct and it's displayed.
Reproduction Steps?
Create a React Native App with Expo and Typescript.
Then, install okta react native dependency
Then configure your okta oidc config with correct information like:
Then call createConfig with that configuration in App.tsx
Then call signInWithBrowser
Additional Information?
No response
SDK Version
@okta/okta-react-native: 2.12.0
Build Information
No response
The text was updated successfully, but these errors were encountered: