Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
redwind opened this issue Nov 13, 2023 · 9 comments
Open

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

redwind opened this issue Nov 13, 2023 · 9 comments

Comments

@redwind
Copy link

redwind commented Nov 13, 2023

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
@amorino
Copy link

amorino commented Nov 13, 2023

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

@redwind
Copy link
Author

redwind commented Nov 14, 2023

Maybe cause deprecated captureStillImageAsynchronouslyFromConnection api is removed

@decisionnguyen
Copy link

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

@redwind
Copy link
Author

redwind commented Nov 15, 2023

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

@amorino
Copy link

amorino commented Nov 15, 2023

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
Copy link
Author

redwind commented Nov 16, 2023

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
Copy link

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
Copy link
Contributor

@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
Copy link

amorino commented Dec 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants