This issue provides the answer:
https://github.com/expo/expo-cli/issues/1004
As a workaround, you can force a different browser using the BROWSER environment variable.
For me, env BROWSER=firefox expo start works.
For different browsers, use one of the following:
Safari
env BROWSER=safari expo start -w
Firefox
env BROWSER=firefox expo start -w
Chrome
env BROWSER=Google\ Chrome expo start -w
Brave
env BROWSER=Brave\ Browser expo start -w
Answer from Max MacLeod on Stack Overflow
» npm install expo-web-browser
Videos
Issue with expo-web-browser
expo-web-browser(web): openBrowserAsync returns OPENED even when popup is blocked (no-op in WKWebView / IAB)
react native - How To Start Expo Web In A Specific Browser? - Stack Overflow
expo-web-browser popup
I'm trying to implement google auth using expo-auth-session in expo-router and testing with an ios simulator but it's not opening the google consent screen and giving this connection lost error.
When I open any site on the safari it works fine. Therefore, I think the issue is with the expo-auth-session which uses expo-web browser to open web pages.
Is anyone else facing this issue?
This issue provides the answer:
https://github.com/expo/expo-cli/issues/1004
As a workaround, you can force a different browser using the BROWSER environment variable.
For me, env BROWSER=firefox expo start works.
For different browsers, use one of the following:
Safari
env BROWSER=safari expo start -w
Firefox
env BROWSER=firefox expo start -w
Chrome
env BROWSER=Google\ Chrome expo start -w
Brave
env BROWSER=Brave\ Browser expo start -w
For Windows...
I created project with expo init and for developing i just run this batch:
set BROWSER=chrome
yarn web
It works if there is this setting present in package.json
{
"scripts": {
"web": "expo start --web",
}
}
OR you can simly make the batch file look like this
set BROWSER=chrome
expo start -w
hi! Using the expo-web-browser package, I get this pop up when openAuthSessionAsync is called. Is there a way to prevent this? I understand why it's there, but terrible UX 🤣
popup