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): Present js alert on top of the presented VC #5282

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

jcesarmobile
Copy link
Member

related to ionic-team/capacitor-plugins#713

If a js alert is used while the capacitor view controller is presenting another view (in 713 it's a native alert), the app crash because the js alert is not being presented

This PR changes the behavior to detect if another view controller is being presented and present the js alert on top of that view controller instead of in the capacitor view controller.

Not sure if this could be considered a breaking change since at the moment the js alert is not being presented. An alternative would be to not try to present the js alert if capacitor view controller is presenting another view controller, that should also avoid the crash.

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.

2 participants