-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BUG] App freezes when dismissing android browser #41
Comments
This issue seems related to By default this is the plugin used on mobile to open a web view and navigate to the identity provider. I have opened an issue in the Capacitor repo : ionic-team/capacitor-plugins#2045 |
Worth mentioning here that I'm also planning on releasing a cordova/capacitor plugin to better follow Apple's recommendations. Currently @capacitor/browser is using |
But when I try to use the browser plugin directly (for example: |
@ms-emp, I traced the issue down to something like: await Browser.addListener(
'browserFinished',
(): void => void Browser.close())
);
await Browser.open({ url: 'http://capacitorjs.com/' }); Sounds like the issue is when we are trying to close the browser when it is actually closed or being closed. Can you please confirm this scenario is also failing on your side ? |
You are right, But why do you call it anyway? Isn't 'browserFinished' fired when the user has already closed the browser? |
When do you plan to release the latest version? |
Hopefully this week-end, or next Monday (still have a few issues to fix). |
🎉 Released in @badisi/[email protected] 📦🚀 |
🎉 Released in @badisi/[email protected] 📦🚀 |
Is there an existing issue for this?
Library version
latest
Description
When running on Android and the user dismisses the login window (by clicking the X button), the app becomes unresponsive.
It happens more with the angular library.
It looks like there are two browser windows open, if you click the device back button we can see another window fading down and then the app is responsive again.
Steps to reproduce
start:android:demo-ngx-auth
scriptIf you minimize the app and then bring it back to the foreground it will work again.
Environment
The text was updated successfully, but these errors were encountered: