Closed kalleboo closed 1 week ago
Hi @kalleboo,
This is indeed a big that Apple introduced in iOS 17.3. Please observe how other 3rd party camera apps (WhatsApp, Snapchat) also experience this issue. Due to this I unfortunately can't give out a specific timeline for a resolution.
Hi @Miguel-Signal
FYI it still works in Telegram but their solution uses Objective C swizzling (not sure if it would be possible to integrate it into this project).
Here're related source files, maybe it could help!
Hi @Miguel-Signal
Apple has released a proper public API to handle these volume button events: https://developer.apple.com/documentation/avkit/avcaptureeventinteraction From a little bit of reverse engineering it also seems that this is also the API that their components are using these days (e.g. UIImagePickerController, etc.).
Apologies for not being able to provide a merge request, but I hope this helps.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to inactivity.
Thanks for the info, @bhuemer!
I think I'll take a look at this and try to provide a PR in the near future.
Awesome @tplk 🤘🏼thanks so much 🫶🏼 this is really a pain in the ass bug 🙈
Bug description
Volume buttons no longer take photos from the camera view.
Steps to reproduce
Actual result: Volume buttons no longer take a photo, but instead adjust volume
Expected result: Volume buttons should take a photo
Device info
Device: iPhone 15 Pro Max
iOS version: iOS 17.3
Signal version: 6.57.0.13
The implementation of this uses private APIs. There was a report for this on the beta of 17.2 (#5711), but it was not present in the release version of 17.2. It looks to me that this has now actually broken in the public release version of 17.3.
The relevant code is here: https://github.com/signalapp/Signal-iOS/blob/main/Signal/src/util/VolumeButtons.swift