Get error "Could not capture still image" on iPhone 15 iOS 17.x
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):
- Device: iPhone 15 promax
- OS: iOS 17.x
- Version 13.0.0
I'm seeing the same error only on iPhone 15 and 15 Pro on Sentry.
Maybe cause deprecated captureStillImageAsynchronouslyFromConnection api is removed
Same issue
Got error in real device
Device: iPhone 15
OS: iOS 17.x
Version 14.0.0-beta9
It's seem version 14.x beta fixed the issue, let use react-native-camera-kit package from git instead npm
It's seem version 14.x beta fixed the issue, let use react-native-camera-kit package from git instead npm
Which version exactly?
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
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
@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
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.
Javascript only receives the message from native as "Could not capture still image". So you should view console logs from Xcode’s console to know the error object and then see its description on the avfoundation document