Estimote / iOS-Fleet-Management-SDK

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

iPhone 5C iOS 8.1 issue #162

Closed onskulis closed 9 years ago

onskulis commented 9 years ago

Hello,

I just updated estimote SDK from 1.3.0 to 2.2.1 to be able to communicate with beacons in iOS 8. Followed your articles to set up location update and I noticed funny behavior.

I can monitore in background/foregroud, but when I range I always get empty list of beacons. My UUID is of course changed, not the original estimote UUID. Why is that?

onskulis commented 9 years ago

New version of your SDK also doesnt work with iPhone 5S iOS 7.1.2, it monitores regions but on ranging always returns empty list of beacons.

martinklimek commented 9 years ago

Hi @onskulis, We've tested on iOS 7.1.2 and on our end examples app works fine properly ranging beacons. Are you ranging for correct region?

onskulis commented 9 years ago

For sure. Otherwise my code wouldnt work with SDK 1.3. Am I able to range only estimoteRegion in 2.2.1 ? I mean I can monitore for my beacons region, then delegates methods are called, for same region I start to range and I always get empty list.

martinklimek commented 9 years ago

Can you paste your code for ranging?

onskulis commented 9 years ago

-(void)start { self.BeaconManager = [[ESTBeaconManager alloc] init]; self.BeaconManager.delegate = self;

self.BeaconRegion = [[ESTBeaconRegion alloc] initWithProximityUUID:[[NSUUID alloc] initWithUUIDString:@"xxxxxxxxxxxxxxx"] identifier:@"myIdent"]; //xxxxxx is my UUID

//self.BeaconRegion.notifyEntryStateOnDisplay = YES;
//self.BeaconRegion.notifyOnEntry = YES;

[self.BeaconManager startMonitoringForRegion:self.BeaconRegion];
[self.BeaconManager requestAlwaysAuthorization];

}

onskulis commented 9 years ago

Is there something wrong with my code?

heypiotr commented 9 years ago

There was a bug in how the region parameter was being passed into the didEnterRegion delegate. Since you were using that "buggy" region to start ranging, this could've been the reason why ranging was returning an empty list of beacons. This has since been fixed—try the newest version of the SDK.