Eddystone Scanner is library written in Swift that scans for eddystone beacons and maintains a list of all the nearby beacons.
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
CocoaPods 1.1+ is required to build EddystoneScanner.
To integrate EddystoneScanner into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target '<Your Target Name>' do
pod 'EddystoneScanner'
end
Then, run the following command:
$ pod install
If you prefer not to use any of the aforementioned dependency managers, you can integrate EddystoneScanner into your project manually.
- Go to the releases section and download the framework from the latest release.
You'll see a file named EddystoneScanner.framework.zip.
- Download the framwork and add it to your project.
- Do not forget to check 'Copy files if needed' checkbox.
To support background scanning of beacons add bluetooth-central
to the apps Info.plist
as one of the values for UIBackgroundModes
array or just do it from the Capabilities section of the app.