Is it possible to trap the Bluetooth connection event to execute a process. I mean that the pair process has already been performed and the trap event I would like to capture is the connection event when the user switch on an already paired device.
If the above is not supported, can I use the button of the device instead? The device is a Bluetooth shutter button that it has a button upon it. Assuming that pair process of the device with iphone has already been performed.
Can I create an app to stand in the background and activated according the below actions even if the phone is idle (not switched off).
1. User opens the button from the switch. The device connects with the phone.
2. After the connection with iphone the user presses the device’s button.
3. The app in the background gets the button signal (validate the Bluetooth friendly name) and perform and action like to find current location and send and sms message.
If there is another way to accomplish the above?
Also after searching I found the blow:
https://developer.apple.com/library...ormingTasksWhileYourAppIsInTheBackground.html
The bluetooth-peripheral Background Execution Mode
When this key-value pair is included in the app’sInfo.plistfile, the system wakes up your app to process read, write, and subscription events.
If the above is not supported, can I use the button of the device instead? The device is a Bluetooth shutter button that it has a button upon it. Assuming that pair process of the device with iphone has already been performed.
Can I create an app to stand in the background and activated according the below actions even if the phone is idle (not switched off).
1. User opens the button from the switch. The device connects with the phone.
2. After the connection with iphone the user presses the device’s button.
3. The app in the background gets the button signal (validate the Bluetooth friendly name) and perform and action like to find current location and send and sms message.
If there is another way to accomplish the above?
Also after searching I found the blow:
https://developer.apple.com/library...ormingTasksWhileYourAppIsInTheBackground.html
The bluetooth-peripheral Background Execution Mode
When this key-value pair is included in the app’sInfo.plistfile, the system wakes up your app to process read, write, and subscription events.