Open Yolanda2001820 opened 7 months ago
In lines 18 and 19 of the code, "event" is displayed as null, which happened once in debug mode.hope to receive a response. Thank you very much
Hi, we will try to find out the reason.
Could you share the content of your plist file? What is your save configuration and path ?
Hi, we will try to find out the reason.
Could you share the content of your plist file? What is your save configuration and path ?
I uploaded some pictures, but I'm not sure if you need the above content. I'm sorry, because I'm not sure if I can understand the content required for 'saving configuration and path'. Is path to save captured images?
info.plist
Save Image Operation
Path generation operation?I'm not sure, I'm sorry
I think your problem is that you save your photo in a temporary directory.
Path to the temporary directory on the device that is not backed up and is suitable for storing caches of downloaded files.
Files in this directory may be cleared at any time. This does not return a new temporary directory. Instead, the caller is responsible for creating (and cleaning up) files or directories within this directory. This directory is scoped to the calling application.
As it mentions this is a temporary folder and you are not supposed to store files there. This is only for caching and the user may not be able to retrieve them.
You should try to save those in the user library instead.
For iOS:
You can use this
getApplicationDocumentsDirectory();
For Android
You can use this
getExternalStorageDirectory();
Thank you very much for your reply. I'll try it out
Did this solve your issue?
Steps to Reproduce
Hello, I have encountered a problem.In XCode, both debug mode and replace mode run, and photos can be obtained after shooting, but after publishing, they are installed for shooting and cannot obtain image information
Expected results
After shooting, display photos
Actual results
No photo information
About your device
iPhone 6s Plus、iPhone 14 pro Max
Your flutter version
Flutter 3.10.5 Dart 3.0.5 camerawesome: ^1.4.0
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2) [✓] VS Code (version 1.84.2) [✓] Connected device (4 available) [✓] Network resources