Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does startAdvertisingPeer work when app enters background?

I'd like the app to advertise a service even when the app enters the background. With Core Bluetooth, this is possible by setting bluetooth-peripheral for UIBackgroundModes.

Does anyone know if the same can be achieved with MCNearbyServiceAdvertiser? Thanks.

like image 381
kenshin03 Avatar asked Dec 09 '13 20:12

kenshin03


1 Answers

When I was at WWDC this year I went to a Developer Lab for Multipeer Connectivity and was told by an Apple engineer that no, service advertisers and browsers will not work in the background.

That said, I've been successfully communicating with connected peers with an app running in the background using a background task, but I have not been able to advertise or browse.

like image 103
ChrisH Avatar answered Nov 29 '22 20:11

ChrisH