Closed toptierlabs closed 10 years ago
Hi! Please make sure first you have Background App Refresh enable on your iPhone. Also, if you are buiding the app using iOS8 SDK, you have to call "requestAlwaysAuthorization" on beaconManager.
Hi! I had enable the Background App Refresh but I didn't call "requestAlwaysAuthorization". I have tried calling the "requestAlwaysAuthorization" but this didn't fix my problem:
self.beaconManager = [[ESTBeaconManager alloc] init];
self.beaconManager.delegate = self;
[self.beaconManager requestAlwaysAuthorization];
NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"B9407F30-F5F8-466E-AFF9-25556B57FE6D"];
self.beaconRegion = [[ESTBeaconRegion alloc] initWithProximityUUID:uuid
identifier:@"MyApp"];
self.beaconRegion.notifyOnEntry = YES;
self.beaconRegion.notifyOnExit = YES;
self.beaconRegion.notifyEntryStateOnDisplay = YES;
[self.beaconManager startMonitoringForRegion:self.beaconRegion];
Any idea? Thanks!!
I could fix it, I had to add this to my .plist file:
https://community.estimote.com/hc/en-us/articles/203393036-Estimote-SDK-and-iOS-8-Location-Services
Thanks!
This is not very clear from the getting started documentation, and since that triggers no error, it can take some time to figure out.
I don't know why didExitRegion and didEnterRegion aren't being called, my code is the following:
I've this in the didFinishLaunchingWithOptions of the AppDelagate
Also i have this two methods:
I add this delegate to the AppDelegate: ESTBeaconManagerDelegate
and this:
@property (nonatomic, strong) ESTBeaconManager beaconManager; @property (nonatomic, strong) ESTBeaconRegion beaconRegion;
I tried with this but didn't fix it:
Thanks!!