GitXplorerGitXplorer
i

BeaconKit

public
27 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
c40f343a11e6ced4a44f8689bffa3ab4338c38d1

remove SwiftLint from local Podfile as it's being installed via brew

iigor-makarov committed 6 years ago
Unverified
df0c5b481053b5d9bffb22594d70d77c81e8b994

use current podspec format

iigor-makarov committed 6 years ago
Unverified
9ea71cbd61651d253753d29055c6ebc452a69d0f

bump version

iigor-makarov committed 6 years ago
Verified
c9e5033fd10e868b49ec60e7c15800fd9e50d90d

Merge pull request #2 from igor-makarov/swift-version

iigor-makarov committed 6 years ago
Unverified
b6a00fd552f8107f25f36bebe0f5ae24deee96ed

remove empty failing test

iigor-makarov committed 6 years ago
Unverified
7026bc7aad161e9ce7dd637e5d46fd257a45de2e

remove lint failure

iigor-makarov committed 6 years ago

README

The README file for this repository.

BeaconKit Build Status Current Version

Beacon detection framework using CoreBluetooth written in Swift

TL;DR

This is a framework that wraps around CoreBluetooth and detects beacons of different types.

Tested to compile with Swift 4.0 & 4.2 for iOS 9.0 & macOS 10.12

The currently supported types are: Eddystone-UID, Eddystone-URL, AltBeacon, iBeacon.

iBeacon detection is only available for macOS. It's not possible to detect iBeacons using CoreBluetooth on iOS (see this explanation for more info).

Only foreground operation is supported, but I plan on adding background detection of Eddystones (it's not possible to detect AltBeacons in the background).

Usage

Activating:

BeaconScanner.shared.delegate = self
BeaconScanner.shared.start()

If you want to change the beacons detected, assign to recognizedBeaconTypes like so:

BeaconScanner.shared.recognizedBeaconTypes = [EddystoneUidBeacon.self, EddystoneUrlBeacon.self, AltBeacon.self] 

Deactivating:

BeaconScanner.shared.stop()

Supported Beacon Types

  • Eddystone-UID
  • Eddystone-URL
  • AltBeacon (foreground only on iOS)
  • iBeacon (macOS only)

Known Unsupported Beacon Types

  • Eddystone-TLM (not an actual beacon)