Open nebeskm opened 3 years ago
This also happens in App-Essentials Sample App
Hi! I have been also having this trouble!
Did find any solution on that?
Cheers!
Any news on this topic ?
Still no solution?
It's probably a bug in Android 11. No problem after update my Galaxy Tab S6 to Android 12.
Same problem in production... 10 month later and no solution/workaround ?
这个问题有解决方案了吗?
We had similar issues when using the media plugin (which will be very similar to the code in essentials). This seems to be memory related.
on our application I could see this happening easily on devices that took very large photos. on other devices this would happen "randomly" which is to mean whenever the device ran out of memory and killed our app on the background while the user was on the camera app. reducing the resolution of the photos being taken seemed to make it work much better.
We also saw very specific devices running into this sort of issue. note that some people reported success when using a different camera app, but IIRC from android 11 onwards you can't set a custom default camera app so that workaround was gone.
Hi, Can you try that plugin?
If the problem is not solved, create new issue in that repository. I'll try to fix it.
Don't forget to provide a sample project with this error and the reproduction steps.
Description
I need to take more photos, but the app restarts on Android 11 devices. Android 10 or lower is OK. It behaves enigmatic. Sometimes it happens after third capturing, sometimes maybe after seventh capturing.
Simulation of the problem (restart after second capturing):
If I place a breakpoint on
var photo = await MediaPicker.CapturePhotoAsync();
and go to next step, nothing gets done and app crashes.Basic Information