react-native-camera-kit icon indicating copy to clipboard operation
react-native-camera-kit copied to clipboard

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

Open redwind opened this issue 2 years ago • 10 comments

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

redwind avatar Nov 13 '23 14:11 redwind

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

amorino avatar Nov 13 '23 20:11 amorino

Maybe cause deprecated captureStillImageAsynchronouslyFromConnection api is removed

redwind avatar Nov 14 '23 01:11 redwind

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

decisionnguyen avatar Nov 14 '23 02:11 decisionnguyen

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

redwind avatar Nov 15 '23 04:11 redwind

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

Which version exactly?

amorino avatar Nov 15 '23 15:11 amorino

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

redwind avatar Nov 16 '23 06:11 redwind

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

decisionnguyen avatar Nov 17 '23 04:11 decisionnguyen

@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

DavidBertet avatar Dec 22 '23 00:12 DavidBertet

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.

amorino avatar Dec 23 '23 04:12 amorino

image

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

nhonnh2 avatar Aug 20 '24 18:08 nhonnh2