Skip to content

Removed PhotosAddOnly permission request within MediaPicker.ios#34287

Open
Kyranio wants to merge 1 commit intodotnet:mainfrom
Kyranio:net10-34246
Open

Removed PhotosAddOnly permission request within MediaPicker.ios#34287
Kyranio wants to merge 1 commit intodotnet:mainfrom
Kyranio:net10-34246

Conversation

@Kyranio
Copy link

@Kyranio Kyranio commented Feb 27, 2026

Description of Change

Removed permission request for adding photos to the devices library on iOS, inside MediaPicker.ios, which doesn't need this permission at this spot inside the code as it does not add the newly captured photo to the device's library here.

Given the official documentation, adding the picture to the device's library is an action given in the example after the CapturePhotoAsync is called, if the task's result contains a value.
This action is completely optional, the developer could implement different logic for handling the picture data after calling CapturePhotoAsync, meaning the permission request becomes unnecessary and redundant.

It is up to the developer to save the image to the device, which then requires the permission, meaning the developer should implement the permission request within their own logic.

Issues Fixed

Fixes #34246

Permission request for adding photos to device library in MediaPicker.ios
@github-actions
Copy link
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 34287

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 34287"

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Feb 27, 2026
@dotnet-policy-service
Copy link
Contributor

Hey there @@Kyranio! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jfversluis
Copy link
Member

It is up to the developer to save the image to the device, which then requires the permission, meaning the developer should implement the permission request within their own logic.

While that might be true, doesn't our implementation always save it to the gallery on iOS? We don't have an option to set the right now (see #30439), so because of that, we also need to have this permission now. If we make that optional for .NET 11, then we can make this permission optional as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community ✨ Community Contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS MediaPicker CapturePhotoAsync without "PhotosAddOnly" permission

2 participants