Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
910 stars 199 forks source link

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, #409

Open Yolanda2001820 opened 7 months ago

Yolanda2001820 commented 7 months ago

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 commented 7 months ago

23

Yolanda2001820 commented 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

g-apparence commented 7 months ago

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 ?

Yolanda2001820 commented 7 months ago

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 commented 7 months ago

info.plist

244

Yolanda2001820 commented 7 months ago

Save Image Operation 245

Yolanda2001820 commented 7 months ago

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

g-apparence commented 7 months ago

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

Yolanda2001820 commented 7 months ago

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

g-apparence commented 7 months ago

Did this solve your issue?