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

feat(browser): implement close() method for android #1972

Merged
merged 6 commits into from
Jan 22, 2024

Conversation

ItsChaceD
Copy link
Contributor

Closes #151

This PR adds the close() method to the Android Browser Plugin.
We create an "intermediate" controller activity that launches the custom tabs, and when we want to close, we launch the same activity with FLAG_ACTIVITY_CLEAR_TOP which triggers onNewIntent where we can detect to destroy the activity & custom tabs, without sacrificing the existing activity stack.

Copy link

github-actions bot commented Dec 20, 2023

Released dev build of browser with dev version: 6.0.0-dev-1972-20240122T161017.0

@markemer
Copy link
Contributor

This looks ok to me, but I'm going to wait on @theproducer's call on his group of real devices before I sign off.

@ItsChaceD ItsChaceD merged commit 60e0267 into main Jan 22, 2024
12 checks passed
@ItsChaceD ItsChaceD deleted the feat/browser-close-android branch January 22, 2024 16:14
bentleyo added a commit to bentleyo/capacitor-plugins that referenced this pull request Sep 19, 2024
bentleyo added a commit to bentleyo/capacitor-plugins that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants