uareurapid edited a comment on issue #268:
URL: 
https://github.com/apache/cordova-plugin-media/issues/268#issuecomment-829152081


   For anyone interested I implemented a fix/workaround on my fork:
   you can check it here: 
[https://github.com/uareurapid/cordova-plugin-media/blob/master/src/android/AudioHandler.java](url)
   on `private void promptForRecord()`
   And 
[https://github.com/uareurapid/cordova-plugin-media/blob/master/src/android/AudioPlayer.java](url)
   Check references to `if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)`
   
   Basically, for recording & saving  audio it doesn't need  
WRITE_EXTERNAL_STORAGE permissions, if SDK >=29, as it will used **scoped 
storage** instead, and save the file in directories belonging to the app.
   
   If the permissions were already granted, or the SDk is lower it behaves as 
usual
   
   Hope this helps others


-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to