fix(ios): CAPTURE_APPLICATION_BUSY error when dismissing modal by swipe #186
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix a bug with modal presentation style controller dismissing on iOS 13 and above. For now, only for audio capture controller.
Platforms affected
iOS 13 and above.
Motivation and Context
Apple added new feature for modals on iOS 13, they might be dismissed by swipe. Such behavior was not handled, so controller threw
CAPTURE_APPLICATION_BUSY
, on opening new modal.closes #152
fixes #151
Description
I added audio capture controller as adaptive controller delegate for itself and implemented the method to handle dismiss event. Then I dismiss the controller correctly, as by tap on the “Done” button.
Testing
I didn’t find any tests for this plugin.
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)