CamerAwesome icon indicating copy to clipboard operation
CamerAwesome copied to clipboard

After the application is released, download the app from TestFilght. Afterwards, the shooting was carried out, but no photo information was obtained after the shooting,

Open Yolanda2001820 opened this issue 1 year ago • 10 comments

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

Brand Model OS
* iPhone* iPhone 6s Plus 15.4.1
* iPhone* iPhone 14 pro Max Latest version 17

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

Yolanda2001820 avatar Nov 16 '23 08:11 Yolanda2001820

23

Yolanda2001820 avatar Nov 16 '23 09:11 Yolanda2001820

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

Yolanda2001820 avatar Nov 16 '23 09:11 Yolanda2001820

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 ?

g-apparence avatar Nov 16 '23 13:11 g-apparence

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?

Yolanda2001820 avatar Nov 17 '23 01:11 Yolanda2001820

info.plist

244

Yolanda2001820 avatar Nov 17 '23 01:11 Yolanda2001820

Save Image Operation 245

Yolanda2001820 avatar Nov 17 '23 01:11 Yolanda2001820

Path generation operation?I'm not sure, I'm sorry 24 2454

Yolanda2001820 avatar Nov 17 '23 01:11 Yolanda2001820

I think your problem is that you save your photo in a temporary directory.

As the documentation says :

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();

g-apparence avatar Nov 17 '23 08:11 g-apparence

Thank you very much for your reply. I'll try it out

Yolanda2001820 avatar Nov 18 '23 01:11 Yolanda2001820

Did this solve your issue?

g-apparence avatar Nov 22 '23 10:11 g-apparence