Estimote / iOS-Fleet-Management-SDK

Estimote Fleet Management SDK for iOS
https://developer.estimote.com
MIT License
1.18k stars 398 forks source link

Estimote Notification Problem with SDK v3.2.2 #193

Closed OmarHallab closed 9 years ago

OmarHallab commented 9 years ago

Hello all I am in need of some guidance with the new SDK, I have been trying to work with the notification example but it somehow is not working with the new SDK Here is my code:

import "ViewController.h"

@interface ViewController ()

@property (nonatomic, strong) CLBeacon beacon; @property (nonatomic, strong) ESTBeaconManager beaconManager; @property (nonatomic, strong) CLBeaconRegion *beaconRegion;

@end

@implementation ViewController

}

}

pragma mark - ESTBeaconManager delegate

}

@end

after building successfully I have received an error warning :

(KCLErrorDomain error 4.) which is a problem with monitoring the beacons.

Please help me guys, I really appreciate! Thank you

KevinJue commented 9 years ago

@OmarHallab

[self.beaconManager  requestAlwaysAuthorization];
[self.beaconManager requestWhenInUseAuthorization];

Get this code and insert it bellow init of ESTBeaconManager i think it could be fix your problem.

heypiotr commented 9 years ago

Yup, missing the Location Services authorization code. See an article from our Knowledge Base: How to use Location Services with Estimote SDK in iOS 8+?