I am currently working on an iOS application that runs in the background, which requires me to advertise and scan the device using Bluetooth 4.0.
When I learned about Corebluetooth.framework, I found that iOS developers can install two kinds of advertising data on a peripheral device.
- local device name.
- service UUIDs.
I found out if the peripheral is running in the background, however the local name will not be advertised. In addition, service UUIDs will be configured for an overflow area that the central unit can only receive through active scanning. However, active scanning can only be performed in the foreground.
At this moment I have a question.
If both central and peripheral devices are running in the background, can the central device receive service UUIDs that are set in the overflow area of ββthe peripheral device? That is, when both iOS applications are running in the background, is it possible to develop an application that each application advertises and scans each other in the background?
source share