dotnet/maui

Add more Media* permissions for Android

Open

#12.857 aperta il 23 gen 2023

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)C# (1951 fork)batch import
area-essentialsgood first issuep/3platform/androidproposal/opent/enhancement ☀️

Metriche repository

Star
 (23.245 star)
Metriche merge PR
 (Merge medio 47g 9h) (248 PR mergiate in 30 g)

Descrizione

Description

As of Android 13, the READ_EXTERNAL_STORAGE permission is no more and split into:

Type of media Permission to request
Images and photos READ_MEDIA_IMAGES
Videos READ_MEDIA_VIDEO
Audio files READ_MEDIA_AUDIO

https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions

Public API Changes

Not sure as of yet, but maybe 3 new permissions?

  • MediaReadImages
  • MediaReadAudio
  • MediaReadVideo

This will also have to be consolidated with the iOS permission of Media...

Intended Use-Case

More granular permissions. Especially since if this lands, then we have added all the media ones into READ_EXTERNAL_STORAGE: https://github.com/dotnet/maui/pull/12854

Guida contributor