Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ranging Doesn't Work when built through XCode #107

Open
linchpinstudios opened this issue Mar 8, 2016 · 3 comments
Open

Ranging Doesn't Work when built through XCode #107

linchpinstudios opened this issue Mar 8, 2016 · 3 comments

Comments

@linchpinstudios
Copy link

When running the app through the Evothings Workbench I'm able to run estimote.beacons.startRangingBeaconsInRegion passing a region and get the beacons that are in range.

However when I build the app in XCode and run it on my device, I'm able to run estimote.beacons.startEstimoteBeaconDiscovery and get everything listed. However when I run estimote.beacons.startRangingBeaconsInRegion the function that responds with beacons in range is never called.

PS: all functions don't work when running through phonegap serve

XCode does have two warning for EstimoteBeacons.m

  • EstimoteBeacons.m:1016:19: 'enableAnalytics:' is deprecated: Staring from SDK 3.2.0 use enableMonitoringAnalytics: or enableRangingAnalytics: instead.
  • EstimoteBeacons.m:1025:45: 'isAnalyticsEnabled' is deprecated: Staring from SDK 3.2.0 use enableMonitoringAnalytics: or enableRangingAnalytics: instead.
@heypiotr
Copy link

Make sure you're requesting Location Services authorization. (startEstimoteBeaconDiscovery uses Core Bluetooth and so it doesn't require it, but startRangingBeaconsInRegion uses iBeacon + Core Location, and thus it needs the authorization)

https://github.com/evothings/phonegap-estimotebeacons/blob/master/documentation.md#authorization-ios-8-and-above

@umanghome
Copy link

I haven't tried anything using Evothings, but ranging does not work when I'm building via XCode. It scans the beacons perfectly, just doesn't range.

@piscis
Copy link

piscis commented Apr 18, 2016

Same here when I build this via cordova build ios --device and attach a safari console the error callback is triggered with The operation couldn’t be completed. (kCLErrorDomain error 5.) right after I start startRangingBeaconsInRegion

I'm using the sample app located in examples/beacon-finder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants