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

Event notification if user closes the browser tab #23

Open
jasonwinshell-br opened this issue Jan 25, 2018 · 4 comments
Open

Event notification if user closes the browser tab #23

jasonwinshell-br opened this issue Jan 25, 2018 · 4 comments

Comments

@jasonwinshell-br
Copy link

Is there a way to get an event notification back in my Cordova app if the user explicitly closes the browser tab -- i.e. by clicking "Done" button in Safari tab , or [X] close box in Chrome Tab?

Thanks

@Rattone
Copy link

Rattone commented Jul 25, 2019

no reply?

@jasonwinshell-br
Copy link
Author

Nope.

@Sir-Will
Copy link

Sir-Will commented Jun 8, 2020

Anyone found a solution for this?

@dahLucky
Copy link

dahLucky commented Feb 13, 2021

I had a workaround (Android only) that worked without touching the plugin. BrowserTabs will pause the app so you can subscribe to cordova's platform "resume" event. I set a variable when loading the browserTab which I utilised in combination with the resume event to check if a BrowserTab was closed.

I recently migrated to Eddy Verbruggen SafariViewController that actually implements observables for open, loaded and closed.

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

4 participants