K
Kinde6mo ago
Tony

WebBrowser.openBrowserAsync error

I try to login in Expo project with Kinde SDK, but I get an error: "WebBrowser.openBrowserAsync is not available on android" but without SDK WebBrowser.openBrowserAsync works properly
6 Replies
Daniel_Kinde
Daniel_Kinde6mo ago
Hi, thanks for your message. We are currently working on a new version of the expo, this is actively being worked on. In the meantime this setting in the package.json file should get around the issue for now. Could you give it a go and let me know hwo you get on?
No description
Tony
TonyOP6mo ago
thanks, I'll try it works, thanks a lot🙏
cristiano ronaldo
hi, what changes do you plan in a new expo sdk? currently the login function does not work on Android as the browser is not persisted in a background when changing to gmail for example to copy the OTP code and when it will be available? 🤔 ahh, I see this problem is fixed in 1.3.0 but I had to manually set the showInRecents property to true. I think you can describe this in the docs, because I wouldn't have known about it if I hadn't cloned the kinde-expo repo and checked how it works under the hood.
const tokenResponse = await authClient.register({},{
showInRecents: true
})
const tokenResponse = await authClient.register({},{
showInRecents: true
})
Oli - Kinde
Oli - Kinde6mo ago
Hey @Jan, Good to hear your problem is resolved. I will pass on this comment to my React/Native Expo team mate to fix this issue.
Tauqeer Khan
Tauqeer Khan6mo ago
Hey @Oli - Kinde , I was also getting this issue, and this resolved my issue when Iwas having separate repo for this expo project.
"overrides": {
"expo-web-browser": "~13.0.3"
},
"overrides": {
"expo-web-browser": "~13.0.3"
},
But now I have moved this expo project to a turbo monorepo since then I have again started getting this issue. I have tried adding above override directive to root package.json of turbo monorepo but it didnt help.
Oli - Kinde
Oli - Kinde6mo ago
Hey @Tauqeer Khan, I have passed the details of your Expo issue onto an expert Expo team mate of mine. We'll get back to you once we have more info
Want results from more Discord servers?
Add your server