Estimote / iOS-Fleet-Management-SDK

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

ESTNearableManager delegate methods not called in background #186

Closed Rich86man closed 9 years ago

Rich86man commented 9 years ago

When monitoring a nearable identifier with code such as

`[self.nearableManager startMonitoringForIdentifier:self.nearableIdentifier];``

in the foreground I get entered and exited delegate notifications through these methods

- (void)nearableManager:(ESTNearableManager *)manager didEnterIdentifierRegion:(NSString *)identifier - (void)nearableManager:(ESTNearableManager *)manager didExitIdentifierRegion:(NSString *)identifier

but when my app goes into the background I no longer receive these notifications.

I've tested the same code with a beacon, and I receive the similar ESTBeaconManager monitoring notifications.

heypiotr commented 9 years ago

Have you enabled the bluetooth-central background mode for your app? Since stickers use a non-iBeacon advertising packet, they require this background mode to keep operating in the background—unlike our regular beacons, which benefit from the iBeacon's built-in, background-monitoring capabilities.

Rich86man commented 9 years ago

Yes that seems to have done the trick. Thanks!