Hi,
Our app is a heart rate monitoring app. The device communicates with app using UDP protocol. For our app, the background communication is essential too. Since Apple does not support UDP communication in background, how can achieve the same?
Can I use the Wireless External Accessory framework for making it work in the background?
Last I checked External Accessory framework supports USB and (classic) Bluetooth, but not Wi-Fi. However, my knowledge could be out of date here. These accessories go through MFi and other folks in DTS support MFi stuff.
Regardless, I doubt you’ll be able to make headway here because of the iOS Wi-Fi lifecycle. For devices with a working WWAN iOS will typically disassociate from the Wi-Fi shortly after screen lock (this helps to save power). When that happens critical system services are expected to transition to running over WWAN (alternatively, they might always run over WWAN, like push notifications). It stands to reason that, if the device has left the Wi-Fi, no traffic on the Wi-Fi can wake it up.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"