I’m currently developing an app that communicates with a BLE dongle. When I swipe up to close the app on my phone, both the phone app and the CarPlay app are terminated. From the CarPlay interface, I can relaunch the app. My question is: Can CarPlay establish a connection with a BLE dongle when the phone app is fully closed or not running in the background?
Is it possible for CarPlay to establish a connection with a Bluetooth Low Energy (BLE) dongle when the phone app is fully closed or not running in the background?
In most cases, apps that have been force-quit (swipe up) cannot perform anymore until they are explicitly relaunched by the user.
Force quit is considered a drastic choice by the user to say that they do not want the app to run, often because it misbehaved in some unrecoverable manner. So, if the user expects the app to keep performing, they should not do that.
Whether launching the app from CarPlay after it's been force-quit from the phone will work the way you want it or not, is an edge case behavior that is not documented. So you will need to test this and see if it works or not for your specific use case and the specific functionality you are implementing.
Argun Tekant / DTS Engineer / Core Technologies
Hi,
When your CarPlay app launches, your process has an active scene Whether that allows for bluetooth communication depends on what BLE defines as active, since you have an active window but it is not in the App Switcher. The best thing to do is try and see what happens.
Rico | WWDR | DTS | Software Engineer
We're facing the same issue here. We need to activate a vehicle gate via Bluetooth through CarPlay.
If the phone's screen is "off," the Bluetooth command isn't sent. However, if the user taps the screen just enough to turn it on (without even unlocking), then the command can be sent.
Is there any documentation or solution for this? other than simply testing to see what happens?