You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For android, any app that has to manage files or storage will need this permission check in order to verify that the permission is enabled.
These changes should include:
A check for MANAGE_EXTERNAL_STORAGE, the permission should not be provided in the AndroidManifest. This should only be enabled in the app integrating this library.
We probably can add a method called isExternalStorageManager() and return the permissions state. Not sure if the RESULTS enum will match all states returned from isExternalStorageManager()
Code sample
@RequiresApi(Build.VERSION_CODES.R)
@ReactMethod
overridefunisExternalStorageManager(promise:Promise) {
val isExternalStorageManager = isExternalStorageManager().toString()
promise.resolve(isExternalStorageManager)
}
This would return the string of "true" or "false". We can do something with that response on the react-native side such as match it with a specific RESULTS type.
The text was updated successfully, but these errors were encountered:
Why it is needed?
For android, any app that has to manage files or storage will need this permission check in order to verify that the permission is enabled.
These changes should include:
Possible implementation
We can do this by adding a check using
We probably can add a method called
isExternalStorageManager()
and return the permissions state. Not sure if the RESULTS enum will match all states returned fromisExternalStorageManager()
Code sample
This would return the string of "true" or "false". We can do something with that response on the react-native side such as match it with a specific RESULTS type.
The text was updated successfully, but these errors were encountered: