This PR is intended to fix an issue with recording audio in Android 13 onwards
Platforms affected
Android
Motivation and Context
Audio cannot be recorded using the method promptForRecord of the plugin, because of the changes made in Android 13 for the WRITE_EXTERNAL_STORAGE permissions, which always is denied in Android 13
Description
This PR contributes a simple edit to the method promptForRecord of the AudioHandler class, which makes it always evaluate
to true when the plugin checks if the app has the permission WRITE_EXTERNAL_STORAGE in Android 13. Previous Android versions should behave just like before.
Testing
I tested the change using the plugin in a android app project, where we use the plugin to record audio in various places, with my Android 13 enabled tablet and previous behaviour was tested with my Android 12 phone.
Checklist
[ ] 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))
This PR is intended to fix an issue with recording audio in Android 13 onwards
Platforms affected
Android
Motivation and Context
Audio cannot be recorded using the method promptForRecord of the plugin, because of the changes made in Android 13 for the WRITE_EXTERNAL_STORAGE permissions, which always is denied in Android 13
Description
This PR contributes a simple edit to the method promptForRecord of the AudioHandler class, which makes it always evaluate to true when the plugin checks if the app has the permission WRITE_EXTERNAL_STORAGE in Android 13. Previous Android versions should behave just like before.
Testing
I tested the change using the plugin in a android app project, where we use the plugin to record audio in various places, with my Android 13 enabled tablet and previous behaviour was tested with my Android 12 phone.
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)