teslamotors / react-native-camera-kit

A high performance, easy to use, rock solid camera library for React Native apps.
MIT License
2.42k stars 577 forks source link

Get error "Could not capture still image" on iPhone 15 iOS 17.x #618

Open redwind opened 7 months ago

redwind commented 7 months ago

My customer had got the error :"Could not capture still image" when capture image. is there anyone get this issue ?

Smartphone (please complete the following information):

amorino commented 7 months ago

I'm seeing the same error only on iPhone 15 and 15 Pro on Sentry.

redwind commented 7 months ago

Maybe cause deprecated captureStillImageAsynchronouslyFromConnection api is removed

decisionnguyen commented 7 months ago

Same issue

image

Got error in real device Device: iPhone 15 OS: iOS 17.x Version 14.0.0-beta9

redwind commented 7 months ago

It's seem version 14.x beta fixed the issue, let use react-native-camera-kit package from git instead npm

amorino commented 7 months ago

It's seem version 14.x beta fixed the issue, let use react-native-camera-kit package from git instead npm

Which version exactly?

redwind commented 7 months ago

It's seem version 14.x beta fixed the issue, let use react-native-camera-kit package from git instead npm

Which version exactly?

I installed latest version from git

decisionnguyen commented 7 months ago

It's seem version 14.x beta fixed the issue, let use react-native-camera-kit package from git instead npm

Which version exactly?

I installed latest version from git

Nó vẫn bị lỗi đấy anh ơi E thử nâng lên bản mới nhất rồi mà khách em vẫn bị Em thử 14.0.0-beta13 rồi mà vẫn bị, thử mấy cách rồi nên e phải quay lại xài react-native-vision-camera

DavidBertet commented 6 months ago

@redwind did you reproduce with v14? As you said, everything has been mostly rewritten.

We return "Could not capture still image" when an error occurs during the capture.

Apple isn't much more precise about when that can happen

If the capture process could not proceed successfully, an error object describing the failure; otherwise, nil. https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/2873949-photooutput

We could return the error, so at least you could log the actual reason instead of having that generic message

amorino commented 6 months ago

From my end, I'm still on v13, having the error Could not capture still image only on newer iPhone models with iOS 17. On iOS 17 simulators everything is working fine, haven't got a development device to test so I'm relying on this thread to know if this is solved.