Your website lists Compass as an additional requirement for instant tracking for android. Is there code I can use to turn off the requirement for compass for instant tracking in 6.0? In my solution I am not using geo locations or POIs. I am using the cordova plugin for my application.
1 Comment
Wikitude Support
said
over 5 years ago
Hello Heather,
If you want to use Instant Tracking then you need to have a compass, so removing it is not an option otherwise this feature will not work. If you wish to work with Image or Object Recognition only (so no GeoLocation features or Instant Tracking) then you can remove the compass requirement as described above:
You simply need to remove any geo location reference from the
StartupConfiguration.Feature class. You have to use AR.hardware.sensors.enabled flag (more details). You should only set its value to false in 2D recognition scenarios, otherwise this will break your Geo-experience as all required sensors (compass, accelerometer, gps) are disabled/ignored. So what you need to do is include this line of code AR.hardware.sensors = false; in your javascript file.
In addition, you can remove "<uses-featureandroid:name="android.hardware.sensor.compass"android:required="true" />" from the manifest.
Heather Ipson
Your website lists Compass as an additional requirement for instant tracking for android. Is there code I can use to turn off the requirement for compass for instant tracking in 6.0? In my solution I am not using geo locations or POIs. I am using the cordova plugin for my application.