Receive iBeacon using Swift (UUID not specified)

Asked 2 years ago, Updated 2 years ago, 99 views

Currently, I would like to use Swift to list iBeacon nearby regardless of UUID.
Is it possible to receive iBeacon radio waves without specifying a UUID?

iphone swift2

2022-09-30 21:11

1 Answers

In conclusion,
If you want to use CoreLocation.framework to detect iBeacon,
UUID is required.

If you use CoreBluetooth.framework,
All broadcast Bluetooth radio waves can be received, so
You can also pick up iBeacon signals.

However, when I try to receive iBeacon using CoreBluetooth.framework, I have the following concerns:

To explain in more detail,

Apple expects to receive iBeacon using CoreLocation.framework.
CoreBluetooth.framework is used to send and receive Bluetooth. iBeacon detection is considered a consistent geofence as it is user location detection.

Also, Apple has always been sensitive to being ridiculed for running out of batteries on iPhones, so
It may not be good to use the framework that consumes too much battery.

CoreLocation.framework allows you to implement the following:
You can use it even if you haven't started the application.
However,
CoreBluetooth.framework requires at least the app to start in the background.

If there is an app usage scene,
If the user does not start the app scene is included,
CoreBluetooth.framework is not suitable.

My personal opinion is
I recommend that you be careful not to deviate from Apple's assumption of using iBeacon.

I hope it will be helpful even a little.


2022-09-30 21:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.