Skip to content

License Validation Failure

Chris Scott edited this page Oct 29, 2018 · 10 revisions

You failed to follow the setup steps in the README precisely.

Step 1

Edit your config.xml

<plugin name="cordova-background-geolocation-lt">
+    <variable name="LICENSE" value="YOUR_LICENSE_KEY" />
    .
    .
    .
</plugin>

Step 2

Remove the plugin with --nosave switch (VERY IMPORTANT)

$ cordova plugin remove --nosave cordova-background-geolocation-lt

Step 3

Re-add the plugin

$ cordova plugin add cordova-background-geolocation-lt

Verify your license has been correctly configured checking your AndroidManifest.xml:

// For cordova-android >= 7.0.0:
$ cat platforms/android/app/src/main/AndroidManifest.xml

// For cordova-android < 7.0.0:
$ cat platforms/android/AndroidManifest.xml
<?xml version='1.0' encoding='utf-8'?>
<manifestpackage="com.your.app">    
    <application>
+        <meta-data android:name="com.transistorsoft.locationmanager.license" android:value="YOUR_LICENSE_KEY" />
    </application>
    .
    .
    .
</manifest>