Ranging Beacons only works when app running?

后端 未结 5 701
说谎
说谎 2021-01-29 23:05

I am having difficulties getting this to work for when the app is not running. I have locationManager:didRangeBeacons:inRegion: implemented and it is called when th

5条回答
  •  不思量自难忘°
    2021-01-29 23:43

    Your app should currently wake up if you're just wanting to be notified when you enter a beacon region. The only background restriction I know of concerns actually hosting an iBeacon on an iOS device. In that case, the app would need to be physically open in the foreground. For that situation, you'd be better off just doing the straight CoreBluetooth CBPeripheralManager implementation. That way you'd have some advertising abilities in the background.

提交回复
热议问题