iOS: didDiscoverPeripheral not called in Background mode

后端 未结 4 2183
情歌与酒
情歌与酒 2020-12-10 08:39

I am Working on BLE project, everything works fine when the app in the foreground.It can discover and connect to the peripheral, all the call back method work perfectly.

4条回答
  •  孤城傲影
    2020-12-10 09:01

    I was working on Estimote Nearable type beacons. After iOS10 SDK update, I encountered exception from CBCentralManager stating :

    has provided a restore identifier but the delegate doesn't implement the centralManager:willRestoreState: method

    To fix this, Turn-On "Background Mode", in Xcode -> Capabilities -> Background Mode

提交回复
热议问题