I am trying to build a Cordova application with cordova-background-geolocation-lt
All was OK without the licence.
Now when I try to use the licence by adding the code below in mobile-config.js, i got error: unbound prefix at > Task :app:mergeReleaseResources stage.
App.appendToConfig(`<config-file parent="/manifest/application" target="app/src/main/AndroidManifest.xml">
<meta-data android:name="com.transistorsoft.locationmanager.license" android:value="<Your_licence>" ></meta-data>
</config-file>`);
In the config.xml, I have the following and the error underlines the meta-date line:
<config-file parent="/manifest/application" target="app/src/main/AndroidManifest.xml">
<meta-data android:name="com.transistorsoft.locationmanager.license" android:value="9a8c4ea5d9de6ffdc49f43d7a4d75e12cc1f4817036a33bd2b47d542a50da15a" />
</config-file>
In the documentation of the plugin, a namespace must be added as attribute to .
- Open
config.xml
: Add the following namespace attribute to the top-level<widget>
element:
<widget id=βcom.foo.barβ version=β1.0.0β xmlns=βhttp://www.w3.org/ns/widgetsβ + xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv=βhttp://cordova.apache.org/ns/1.0β>
I think the error comes from here but I canβt figure out how to add this attribute to .
Thanks.