xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.52k stars 505 forks source link

[Bug] Camera is stuck after navigating back to the application via notification in Android notification center #1675

Open roxton001 opened 3 years ago

roxton001 commented 3 years ago

Description

Camera is stuck after navigating back to the application via notification in Android notification center

Steps to Reproduce

  1. start taking a photo (use "Take photo" button in the sample app)
  2. send the app to the background (use home button)
  3. use notification to return to the app

Expected Behavior

Camera activity is brought to the foreground or is CapturePhotoAsync call is finished.

Actual Behavior

MediaPicker.CapturePhotoAsync(); task never ends -> the app gets stuck

Basic Information

The same issue can be reproduced with Xam.Plugin.Media

Sample app

CameraSample.zip

roxton001 commented 3 years ago

Hi guys, any updates on this?