You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our app, users need to go to the browser to register and that works fine, the issue is that after registering they go back to the app and the browser closes as expected, but when we trigger another Browser.open() inside the app the tab opens and closes immediately.
Expected Behavior
The browser should stay opened until closed by the user.
Opening a new browser alone works fine, but doing so after arriving at the app through a deep link doesn’t. Also, I'm not calling Browser.close() anywhere in the code.
Additional Context
The only workaround I found so that the browser doesn't close automatically was to call Browser.open() inside a setTimeout with at least 1500ms, and even with that it's still not consistent.
The text was updated successfully, but these errors were encountered:
This issue needs more information before it can be addressed.
In particular, the reporter needs to provide a minimal sample app that demonstrates the issue.
If no sample app is provided within 15 days, the issue will be closed.
Bug Report
Opening a new browser after arriving at the app through a deep link causes it to auto-close or crash.
Plugin(s)
"@capacitor/browser": "^6.0.0"
(Although I tried downgrading and the problem persisted)
Capacitor Version
Platform(s)
Android 14
Current Behavior
In our app, users need to go to the browser to register and that works fine, the issue is that after registering they go back to the app and the browser closes as expected, but when we trigger another
Browser.open()
inside the app the tab opens and closes immediately.Expected Behavior
The browser should stay opened until closed by the user.
Code Reproduction
Other Technical Details
Opening a new browser alone works fine, but doing so after arriving at the app through a deep link doesn’t. Also, I'm not calling
Browser.close()
anywhere in the code.Additional Context
The only workaround I found so that the browser doesn't close automatically was to call
Browser.open()
inside asetTimeout
with at least 1500ms, and even with that it's still not consistent.The text was updated successfully, but these errors were encountered: