cordova-plugin-media-capture icon indicating copy to clipboard operation
cordova-plugin-media-capture copied to clipboard

iOS 13 Audio Recording Modal Swipe Dismiss

Open neno-giscloud opened this issue 5 years ago • 1 comments

Bug Report

Problem

It's now possible to dismiss the audio recording modal with a swipe on iOS 13. After you do that, the audio recorder keeps working, never calls any callback and won't let you start another recording.

What is expected to happen?

One should be able to interact with the recorder as they did before. Swiping should not be an issue. I'd expect swiping away the modal to be the same as clicking Done.

What does actually happen?

When you swipe away the modal, it gets hidden but no recording callbacks get called and the recorder seems to linger in the background. This prevents attempts at trying a new recording.

Information

The new swipeable modals are an iOS 13 feature. There is a way to prevent swiping.

Command or Code

Call this in the js console:

navigator.device.capture.captureAudio();

After the recording modal opens, swipe it away.

Environment, Platform, Device

Tested with iPhone 6, iOS 13.

Version information

$ cordova -v
9.0.0 ([email protected])

$ cordova platform list Installed platforms: ios 5.0.1


Plugin version: 3.0.3

XCode version: 11.1



## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

neno-giscloud avatar Oct 24 '19 10:10 neno-giscloud

There's a possible temporary fix which disables swiping: https://github.com/apache/cordova-plugin-media-capture/pull/152

neno-giscloud avatar Oct 24 '19 10:10 neno-giscloud

Resolved by #278 which is a rebase of #186

erisu avatar Aug 09 '23 07:08 erisu