Hi,
I have wrote the application based on Blank App template, downloaded from the cloud.
ESTConfig.setupAppID("xxx", andAppToken: "xxxx")
was already in the app.
I have declared the region and beacon manager:
let region = CLBeaconRegion(proximityUUID: NSUUID(UUIDString: "B9407F30-F5F8-466E-AFF9-25556B57FE6D")!, identifier: "Estimote")
let beaconManager = ESTBeaconManager()
...
self.beaconManager.startRangingBeaconsInRegion(beaconRegion)
...
func beaconManager(manager: AnyObject!, didRangeBeacons beacons: [AnyObject]!, inRegion region: CLBeaconRegion!) {
for beacon in beacons as! [CLBeacon] {
let beaconConnection = ESTBeaconConnection(beacon: beacon, delegate: self, startImmediately: false)
beaconConnection.startConnection()
}
}
func beaconConnection(connection: ESTBeaconConnection, didFailWithError error: NSError) {
NSLog("Something went wrong. Beacon connection Did Fail. Error: %@", error);
}
I am receiving the error
Error Domain=com.estimote Code=2 "Authorization failed for this beacon.