Posts

Post not yet marked as solved
4 Replies
3.7k Views
Hi guys,I'm trying to detect when the users of my app are entering/leaving their car. Our app helps people with parking regulations in cities so it can be more than useful to have such detection.Is it possible to detect Bluetooth connections/disconnections, even in Background ? It seems to be possible but only with BLE devices with CoreBluetooth. But cars are mainly using A2DP or HPF, thus it's not BLE... For those Classic Bluetooth devices, I saw ExternalAccessory Framework but id doesn't seem to work in background for Bluetooth detections.I also tried to use the MotionActivity framework, the idea would be to detect the switch from walgint to driving or the opposit. But it seems it's not working in background, right ?Another solution would be to use the Location in background, but its really not power effective and we don't want to kill the battery of our users.Do I miss something ? Is there another solution ? Is the MotionActivity working in background and does it wake the app to process the data ?What's really frustrating is that on Android, it took nearly no time to develop this feature and for iOS, I don't see any clear soluton for two days in a row now...Thanks a lot for your help !
Posted
by Gp2mv3.
Last updated
.