Hello everyone!
I have an app which must broadcast and detect iOS devices using Core Bluetooth Central and Peripheral managers.
It works pretty good in active mode Central Manager discover peripheral several times per second, in background mode (I have turned background modes for Central and Peripheral managers in Xcode settings) frequency of discovering became one time per two-three seconds.
But problem comes up when device screen became locked. In that case Central Manager stops calling didDiscoverPeripheral even if I specify service UUID.
Also, when screen unlocked Central Manager continue work in background mode.
So, my questions are:
- What sate obtain application when users press lock button?
- Is there any way to make Central Manager to discover or connect to devices using their service UUID's?
- Is there is something I missed to turn on to make Central Manager work in locked screen mode?
- Is there any way to force Central Manager work with locked screen as in background mode?