You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/10/24 10:52:12 UTC

[GitHub] [cordova-plugin-media-capture] neno-giscloud opened a new pull request #152: Prevent audio recording from getting stuck

neno-giscloud opened a new pull request #152: Prevent audio recording from getting stuck
URL: https://github.com/apache/cordova-plugin-media-capture/pull/152
 
 
   Swiping away the recording modal on iOS 13 causes the plugin
   
   * to never stop in the background
   * never to call any callback
   * to prevent you from starting another recording
   
   This commit disables the swiping action.
   
   <!--
   Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines:
   
   http://cordova.apache.org/contribute/contribute_guidelines.html
   
   Thanks!
   -->
   
   ### Platforms affected
   
   iOS
   
   ### Motivation and Context
   
   This is a temporary fix to avoid https://github.com/apache/cordova-plugin-media-capture/issues/151
   
   ### Description
   
   Using the `isModalInPresentation` prop of the UIViewController, I've disable the swiping action.
   
   ### Testing
   
   This has only been tested on an iOS 13 iPhone 6S. The test was to try and dismiss the recording modal with  a swipe. The recording modal was opened by running
   
   ```js
   navigator.device.capture.captureAudio();
   ```
   
   in a javascript console.
   
   
   
   ### Checklist
   
   - [x] I've run the tests to see all new and existing tests pass
   - [] I added automated test coverage as appropriate for this change
   - [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`)
   - [x] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
   - [x] I've updated the documentation if necessary
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org