Skip to content

[iOS] Media Picker UIImagePickerController closing issue #21996

Open
@amahera

Description

Description

If we use await MediaPicker.Default.PickPhotoAsync() and then try to open alert - await DisplayAlert(result?.FileName, "message", "ok") -alert won't be displayed.

I believe that this is an issue with setting the result of image picking before closing UIImagePickerController.

Steps to Reproduce

  1. Call and await MediaPicker.Default.PickPhotoAsync()
  2. Try to open alert await DisplayAlert(result?.FileName, "message", "ok")
  3. Verify that the alert is not shown

Link to public reproduction project repository

https://github.com/amahera/media-picker-repoduction-issue

Version with bug

8.0.20 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

add some delay before DisplayAlert

Relevant log output

No response

Activity

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

Metadata

Assignees

No one assigned

    Labels

    area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infolegacy-area-controlsLabel, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editorplatform/iOS 🍎s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions