Start a new topic

How to change desiredLocationAccuracy (GPS)?

I have been evaluating Wikitude for consideration in making a close-range, high accuracy requirement POI app through Cordova. But I cannot seem to figure out how to adjust the following properties or verify what they are set to:

  • CLLocationAccuracy (desiredLocationAccuracy)
  • CLLocationDistance (desiredLocationDistanceFilter)
  • CLLocationDegrees (desiredHeadingFilter)

These properties appear in the "WTArchitectStartupConfiguration.h" file on iOS but how can they be changed since only the .h is exposed? I thought they could be added to "startupConfiguration" in JavaScript but that only supports specifying the camera position.  The .h file indicates the default value is kCLLocationAccuracyNearestTenMeters but I really need this to be changed to kCLLocationAccuracyBestForNavigation for this app (and equivellent high precision on Android).

I have had very poor success testing the accuracy on Android or iOS using the default POI samples, where a lot of times the markers move all around the screen no matter where you are looking even when using fixed GPS coordinates. I also would like to call the location update every second.

Also does Wikitude Cordova depend on HTML5 Webview Geolocation or does it use the more accurate native location services of iOS and Android? Should I manually be adding cordova-plugin-geolocation?

Login or Signup to post a comment