Trying to implement the simply ranging app, but received “[CoreBluetooth] XPC connection invalid” after call the “startRangingBeaconsInRegion:” method.
this’s how to init the beaconManager:
[ESTConfig setupAppID:EST_APP_KEY andAppToken:EST_TOKEN];
self.beaconManager = [ESTBeaconManager new];
self.beaconManager.delegate = self;
[self.beaconManager requestWhenInUseAuthorization];
CLBeaconRegion *dummyRegion = [[CLBeaconRegion alloc]
initWithProximityUUID:[[NSUUID alloc]
initWithUUIDString:@"B9407F30-F5F8-466E-AFF9-25556B57FE6D"]
identifier:@"ranged region"];
[self.beaconManager startRangingBeaconsInRegion:dummyRegion];
After we call the method “startRangingBeaconsInRegion:” the app has no response on any delegate method other than just print out the “[CoreBluetooth] XPC connection invalid” on the console.
Xcode Version: 8.3.3
Objective C
Version SDK 4.0
Key classes: ESTBeaconManager, ESTBeaconManagerDelegate
Key method: startRangingBeaconsInRegion:
Is there any way to make the ranging work? i just want to make the ranging work when the app is in the foreground.
Thanks!