Package creation Issue

Hello everybody,

I am trying to create a package with the cordova plugin cordova-plugin-background-geolocation developped by christocracy.

I declare it in my package.json file as follow:

Cordova.depends({ 
'org.transistorsoft.cordova.background-geolocation':     'https://api.github.com/repos/christocracy/cordova-plugin-background-geolocation/tarball/master',
'org.apache.cordova.geolocation': '0.3.12',
'org.apache.cordova.device': '0.2.11'
});

when I launch my test application I get the following error:

package.js:14:9: must declare exact version of dependency:
org.transistorsoft.cordova.background-geolocation@https://api.github.com/repos/christocracy/cordova-plugin-background-geolocation/tarball/master

What is wrong with my package declaration ?

Thanks in advance for the help.

Best Regards

You can use the zeroasterisk:cordova-geolocation-background smart package and it will import/build everything you need, I’ve used this package myself and it’s working nicely.

Hello kzvaigzne,

Thanks for your reply.
I have already tested or but it disn’t work well for me.
That is why i am trying to modify it.
I tested only on iOS and on iPhone 5.
And you ?
The background mode don’t give me location coordinates.
Regards

Envoyé de mon iPhone

To experiment with, can you just “fake” a version number in there?

In plugin.xml it states version="0.3.6"

Hello zeroasterisk

Thanks for the tip. I gonna give a try.

Regards
jeangui