Take photo from BLE device

Hello,


We are creating a device and an app for iOS which communicate using BLE.


The device must be able send a request to the phone to take a picture (with the default photo app started).


Some selfie stick act as keyboard to be able to emulate the volume button and thus take a photo.

The device is not only used for taking photos and must receive and send other data using BLE, so it isn’t logic to show it as a keyboard only.


Is there another way to make the app take a photo, like emulate it from the software ? Or is there any other bean to take the photo ?


Thanks you

Replies

You can use any characteristic to have your device send a piece of data to your app that would act as the command to take a picture.


What you cannot do is to launch the camera app once your app gets the command from the device. If you want to add photo taking capability to your app, you would need to implement it inside your app, which you can then activate at will.


The camera and other photo related functionalities can be implemented via the UIImagePickerController class


Have a look at https://developer.apple.com/documentation/uikit/uiimagepickercontroller for more information.

Thank you for your response,


What I would like to do is :

1- Start de default photo app (not a dedicated UIImagePicker)

2- Use the device to trigger the phone camera while the photo app is on


Some devices are able to do so by acting as a keyboard and trigger the volume button press.

However, the device has other capabilities and cannot be only a keyboard. Is there any possibility to still trigger the volume button press from my device ?


Thank's