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

Make sure we open a new instance of a custom chrome chrome tab #812

Merged
merged 1 commit into from
Apr 15, 2022

Conversation

savy-91
Copy link
Contributor

@savy-91 savy-91 commented Apr 19, 2021

This PR ensures that when we call .open(uri) on Android we are opening a fresh instance of Chrome Custom Tab.

Currently, when the user navigates back to the app using a deep link, the Chrome Custom Tab instance is not destroyed and when the user wants to launch a new instance they will find themself inside an outdated instance with a wrong URL.

… tab, we are opening a new instance with the provided url and not an old instance.
@pichillilorenzo pichillilorenzo changed the base branch from master to develop April 15, 2022 18:43
@pichillilorenzo pichillilorenzo merged commit ca42fe0 into pichillilorenzo:develop Apr 15, 2022
@pichillilorenzo
Copy link
Owner

I have added singleInstance boolean option for the Android ChromeSafariBrowser implementation to launch a different activity that extends the base one. This way the launch mode is not a constraint for other people that don't want always singleInstance.

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

Successfully merging this pull request may close these issues.

None yet

2 participants