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
Hi everyone!
I'm working on a .NET MAUI app and I'm running into an issue on iOS when selecting photos from the gallery.
I'm using FilePicker.Default.PickMultipleAsync() to let users select multiple photos and it works fine as long as the user picks some photos.
But here’s the problem:
If the user cancels the picker (either by swiping down or tapping "Cancel"), the method never returns, and the rest of the code after the call is never executed.
It feels like the app is waiting forever for the picker to signal that it has closed, but that signal never comes back.
I expected that if the user cancels, results would be null or empty, and the code would continue normally.
But instead, nothing happens — not even a breakpoint after PickMultipleAsync is hit.
This only happens on iOS (tested on an iPhone).
Has anyone else faced this? Any workaround or known fix?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I'm working on a .NET MAUI app and I'm running into an issue on iOS when selecting photos from the gallery.
I'm using FilePicker.Default.PickMultipleAsync() to let users select multiple photos and it works fine as long as the user picks some photos.
But here’s the problem:
If the user cancels the picker (either by swiping down or tapping "Cancel"), the method never returns, and the rest of the code after the call is never executed.
It feels like the app is waiting forever for the picker to signal that it has closed, but that signal never comes back.
I expected that if the user cancels, results would be null or empty, and the code would continue normally.
But instead, nothing happens — not even a breakpoint after PickMultipleAsync is hit.
This only happens on iOS (tested on an iPhone).
Has anyone else faced this? Any workaround or known fix?
Thanks in advance!

Beta Was this translation helpful? Give feedback.
All reactions