sampart / cordova-plugin-app-version

Cordova plugin to return the version number of the current app [not maintained]
MIT License
401 stars 196 forks source link

Install problem -- how to set up. #95

Closed newuser44 closed 6 years ago

newuser44 commented 7 years ago

I'm confused on what is needed to get this to work.

I have ngCordova installed.

I have a link to the js file in my html. I have the ngCordova services added.

angular.module('myApp', ['ngCordova'])

Now I install this plug in.

To use this plugin do I need the ngCordova AND $cordovaAppVersion ???

Do I need to add any JS anywhere?

I know there is something I'm missing but not sure where I'm off.

Update. I added in the JS. Looks like its finding it, but then I get an error

AppVersionPlugin.js:65 Uncaught ReferenceError: module is not defined at AppVersionPlugin.js:65

The line it has a problem with is module.exports = getAppVersion;

Drarok commented 6 years ago

Sorry, I've not used ngCordova, but given they appear to have their own plugins ecosystem, it might be that it's not compatible with plain Cordova ones?