Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top