Hello FlutterFlow Community,
I'm facing an issue with the built-in "image picker" functionality in FlutterFlow, specifically on Android devices. When using the camera to take and upload a photo, the app unexpectedly restarts. This seems to be a known issue related to how Android handles memory pressure, leading to the destruction of MainActivity
.
The image_picker
library's README mentions handling MainActivity destruction and suggests using retrieveLostData
to manage lost data upon restart. However, I'm not sure how to integrate this solution into FlutterFlow's built-in implementation or if there's a different workaround to prevent these restarts.
Has anyone successfully resolved this issue within the FlutterFlow environment? I would greatly appreciate any insights or experiences shared on this matter.
Thank you all in advance for your assistance!