[watchOS] About BLE

Please help me

Like the Bluetooth setting screen of the watch, I want to keep the screen active without going to the inactive state when I lower my wrist.

Now my app Executes 'didDeactivate' method when I lower my wrist and Bluetooth communication is cut off.

What should I do?

You can maintain a Background Bluetooth connection on WatchOS for timely Alerts. You can refer to the WWDC2022 session named : "Get timely alerts from Bluetooth devices on watchOS". You will also need to add Bluetooth-central to UIBackgroundModes in your Watch app's Info.plist.

If you have to send bluetooth traffic, then there is a limit on how long the watch can remain connected over Bluetooth when your app is in the background. I hope this helps.

[watchOS] About BLE
 
 
Q