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 MAUI projects targeting API level 33 it is impossible to request READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions (see Android documentation:
Note: If your app targets Build.VERSION_CODES.R or higher, this permission has no effect.
). And if user is trying to store some file the PermissionException is throwing
Expected Behavior
Filesaver should not require WRITE_EXTERNAL_STORAGE permission and PermissionException should not be thrown for the projects which targeting API level 33
Steps To Reproduce
Run solution from reproduction repository which is targeting API level 33
See that modal window with requesting storage permissions is not showing
Click on Store file button. See in output that PermissionException is throwing
Change target API level to 32 in AndroidManifest.xml
Rerun app and see that modal window with requesting storage permissions is showing
@IvanMi773
Is there a reason you closed the ticket right away?
I have the same problem - do you have a workaround for this (with target API 33)? My only solution at the moment would be to use the Maui share instead of FileSaver
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
For Android MAUI projects targeting API level 33 it is impossible to request READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions (see Android documentation:
). And if user is trying to store some file the
PermissionException
is throwingExpected Behavior
Filesaver should not require WRITE_EXTERNAL_STORAGE permission and PermissionException should not be thrown for the projects which targeting API level 33
Steps To Reproduce
Run solution from reproduction repository which is targeting API level 33
See that modal window with requesting storage permissions is not showing
Click on
Store file
button. See in output that PermissionException is throwingChange target API level to 32 in AndroidManifest.xml
Rerun app and see that modal window with requesting storage permissions is showing
After click on button file picker is opened
Link to public reproduction project repository
https://gitlab.com/IvanMi773/maui-filesaver-bug-reproduction/-/tree/main/
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: