K
Kinde4mo ago
Masini

React Native SDK: Android Login not working

Hello, I am using the Kinde react-native-sdk for 0.7x with Expo, and my login() function is not working on Android. On iOS, it works perfectly, however on Android I am receiving this error: Something wrong when trying to authenticating. Reason: The method or property WebBrowser.openBrowserAsync is not available on android, are you sure you've linked all the native dependencies properly? I am using Expo Go to test this out.
10 Replies
Oli - Kinde
Oli - Kinde4mo ago
Hi @Masini, I will get a React Native expert from my team to look into this issue.
Daniel_Kinde
Daniel_Kinde4mo ago
Hi @Masini , We are aware of issue with the latest version of Expo, please add this to your package.json file and will resolve the issue for now
No description
Masini
Masini4mo ago
I did this and the browser with the Kinde login page is successfully being opened. However, when testing this on Expo Go, whenever I try to Sign In/Sign Up, instead of redirecting me to the correct pages, it opens up another new instance of the Expo Go app with my project and takes me back to the log in screen. Then when I try to tap on the Sign In/Sign Up buttons, the same error is given as the one I specified in my post. Does this only work for development builds? Because otherwise it's gonne be a major pain to work with during development Atleast on iOS it still works perfectly fine. The problem seems to be Android. I only tested this on a single device as of yet (it's pretty old), I'll see if I can try it with another Android device and see if the same problem occurs Any updates on this please? @Daniel_Kinde Just tested this on an android simulator, when pressing sign in the kinde sign in page just keeps loading forever. Please reach out and suggest some possible fixes because otherwise we're going to have to change our Auth provider since this is holding us back from progressing to the next phase of our project.
Daniel_Kinde
Daniel_Kinde4mo ago
We are looking in solution for the newer version of Expo, this is with our engineers now.
Masini
Masini4mo ago
Just fixed it because I had incorrect callback URIs in my ENV for my development build. Thanks
Daniel_Kinde
Daniel_Kinde4mo ago
Thats good! We should have a build soon with the updated expo. There are some other enhancements we were hoping to get in along side it
Masini
Masini3mo ago
Any update on when the build is going to be released? The login flow on android is really buggy especially when asking the user to input their verification code sent through email, the kinde login screen just gets dismounted as soon as the user puts the app in the background, and the user is practically unable to login to the app unless he obtains the verification code from a different device.
Daniel_Kinde
Daniel_Kinde3mo ago
Hi @Masini, Sorry for the delay, this is still actively being worked on, apologies for the delay. We have had to approach the SDK in a different way which is slowing progress, it is coming though.
jonericcook
jonericcook2mo ago
This is happening to me right now. When I tap the sign in button on the kinde page while on a physical Android device and sim I just see the spinner on the button and nothing happens. Do I need different call back urls for android? The app works on my physical iOS device and simulator with env vars I have set so I’m confused why Android hangs
onderay
onderay5w ago
Given you are using Expo, we have just softly launched a new Expo SDK, could you see if this addresses the issue for you? https://github.com/kinde-oss/expo
GitHub
GitHub - kinde-oss/expo: Library to integrate Kinde into an Expo pr...
Library to integrate Kinde into an Expo project. Contribute to kinde-oss/expo development by creating an account on GitHub.
Want results from more Discord servers?
Add your server