Hello
Has anyone acheived a BLE connection to an iTag device and kept the connetion live in the background on an iPhone. I have an app(SOS app) that stays running in the background. It can get GPS coords, do beacon scanning and check the angle(mandown) of the device(getGravity) all in the background no problems.
When I connect to an iTag device, used to active an SOS alert, I get data available (3 key press to trigger the alert), and can set off the SOS. The app is killed shortly afterwards, within 1 minute.
The app connects to backend B4J servers for transmitting alert packets. This is a commerical application and and the same apps is already in use on Android with thousands of users.
' // application header
Any ideas/views appreciated.
Regards
John.
Has anyone acheived a BLE connection to an iTag device and kept the connetion live in the background on an iPhone. I have an app(SOS app) that stays running in the background. It can get GPS coords, do beacon scanning and check the angle(mandown) of the device(getGravity) all in the background no problems.
When I connect to an iTag device, used to active an SOS alert, I get data available (3 key press to trigger the alert), and can set off the SOS. The app is killed shortly afterwards, within 1 minute.
The app connects to backend B4J servers for transmitting alert packets. This is a commerical application and and the same apps is already in use on Android with thousands of users.
' // application header
B4X:
#Entitlement: <key>com.apple.developer.networking.wifi-info</key><true/>
#PlistExtra: <key>NSLocationAlwaysAndWhenInUseUsageDescription</key><string>Track your location in the background to assist in SOS emergency alerting.</string>
#PlistExtra: <key>NSLocationAlwaysUsageDescription</key><string>Track your location in the background to assist in SOS emergency alerting.</string>
#PlistExtra: <key>NSLocationUsageDescription</key><string>Track your location in the background to assist in SOS emergency alerting.</string>
#PlistExtra: <key>NSLocationWhenInUseUsageDescription</key><string>Track your location in the background to assist in SOS emergency alerting.</string>
#PlistExtra: <key>NSBluetoothAlwaysUsageDescription</key><string>Bluetooth used scan for indoor Beacons to assist indoor positioning</string>
' // set permitted background modes
#PlistExtra: <key>UIBackgroundModes</key>
#PlistExtra: <array>
#PlistExtra: <string>location</string>
#PlistExtra: <string>bluetooth-central</string>
#PlistExtra: <string>bluetooth-peripheral</string>
#PlistExtra: <string>audio</string>
#PlistExtra: </array>
' // Status bar style
#PlistExtra: <key>UIStatusBarStyle</key>
#PlistExtra: <string>UIStatusBarStyleLightContent</string>
#PlistExtra: <key>UIViewControllerBasedStatusBarAppearance</key>
#PlistExtra: <false/>
#DeviceCapabilities: location-services, bluetooth-le
Any ideas/views appreciated.
Regards
John.
Last edited: