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

fix(iOS): Only open a URL while the application is active #3328

Merged
merged 1 commit into from
Jul 24, 2020
Merged

Conversation

ikeith
Copy link
Contributor

@ikeith ikeith commented Jul 24, 2020

This branch avoids a bug discovered by an enterprise client. In the reproduction case, if a user performs a double tap on a tel link, the application will get stuck in the inactive state. When opening the URL, the system presents an action sheet so the user can confirm the dial operation. However, if a second tel URL is attempted to open while that system-supplied action sheet is on-screen (and the application is inactive), the application will not be moved to the active state if the user selects cancel and dismisses the sheet. The application needs to be deactivated some other way (app switcher, etc) for the normal application life cycle events to be restored.

Under normal operations, the application shouldn't be asking the system to open URLs if it is not active so I'm not aware of any issues with the added check.

@ikeith ikeith requested a review from jcesarmobile July 24, 2020 16:44
@imhoffd imhoffd added this to the 2.3.1 milestone Jul 24, 2020
@imhoffd imhoffd merged commit 8d7c58b into 2.x Jul 24, 2020
@imhoffd imhoffd deleted the open-url branch July 24, 2020 18:10
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

Successfully merging this pull request may close these issues.

3 participants