Skip to content
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

Android Firefox problem with singleTop launch mode #233

Open
khspn opened this issue Jan 15, 2025 · 0 comments
Open

Android Firefox problem with singleTop launch mode #233

khspn opened this issue Jan 15, 2025 · 0 comments

Comments

@khspn
Copy link

khspn commented Jan 15, 2025

Hey there!

In our application we use this package for authorization and we're facing some problems when phone's default browser is set to any variation of Firefox.

Auth works flawlessly with every other available browser (even with Tor!), but with Firefox, on redirect, browser closes correctly but our application doesn't receive the token and it's treated like a canceled log in attempt.

It seems like Firefox and our application don't communicate or that the auth procedure isn't able to catch data Firefox sends back after redirect.

This only occurs when launchMode from AndroidManifest is set to 'singleTop'.

With 'singleTask', Firefox works but having 'singleTop' for launchMode is important to us because one of the requirements for the app is to be able to continue the sign in process where you left of by clicking the icon on home screen (if the app hasn't been swiped from recent apps), and with 'singleTask' clicking the icon closes the browser.

The app is built using RN 0.74.2, we're not using Expo or any other framework.

Any idea on how we can approach this? Is this a known error that will be fixed in the future?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant