{"action":"created","issue":{"url":"https://api.github.com/repos/whiteoctober/cordova-plugin-app-version/issues/64","labels_url":"https://api.github.com/repos/whiteoctober/cordova-plugin-app-version/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/whiteoctober/cordova-plugin-app-version/issues/64/comments","events_url":"https://api.github.com/repos/whiteoctober/cordova-plugin-app-version/issues/64/events","html_url":"https://github.com/whiteoctober/cordova-plugin-app-version/issues/64","id":107000772,"number":64,"title":"getAppName() & getPackageName() & getVersionCode() returns Version Number","user":{"login":"web-slinger","id":12665151,"avatar_url":"https://avatars.githubusercontent.com/u/12665151?v=3","gravatar_id":"","url":"https://api.github.com/users/web-slinger","html_url":"https://github.com/web-slinger","followers_url":"https://api.github.com/users/web-slinger/followers","following_url":"https://api.github.com/users/web-slinger/following{/other_user}","gists_url":"https://api.github.com/users/web-slinger/gists{/gist_id}","starred_url":"https://api.github.com/users/web-slinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-slinger/subscriptions","organizations_url":"https://api.github.com/users/web-slinger/orgs","repos_url":"https://api.github.com/users/web-slinger/repos","events_url":"https://api.github.com/users/web-slinger/events{/privacy}","received_events_url":"https://api.github.com/users/web-slinger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T14:43:42Z","updated_at":"2015-11-15T14:46:06Z","closed_at":"2015-11-15T14:46:06Z","body":"```\r\ncordova.getAppVersion.getAppName().then(function (app_name) {\r\n    $log.debug(app_name)\r\n});\r\ncordova.getAppVersion.getPackageName().then(function (package_name) {\r\n    $log.debug(package_name)\r\n});\r\ncordova.getAppVersion.getVersionCode().then(function (version_code) {\r\n    $log.debug(version_code)\r\n});\r\ncordova.getAppVersion.getVersionNumber().then(function (version) {\r\n    $log.debug(version)\r\n});\r\n```\r\n\r\nThe above returns '2.0' for each iteration\r\n\r\nI've just removed the plugin and added via git clone, I'm using this in angular "},"comment":{"url":"https://api.github.com/repos/whiteoctober/cordova-plugin-app-version/issues/comments/156815655","html_url":"https://github.com/whiteoctober/cordova-plugin-app-version/issues/64#issuecomment-156815655","issue_url":"https://api.github.com/repos/whiteoctober/cordova-plugin-app-version/issues/64","id":156815655,"user":{"login":"web-slinger","id":12665151,"avatar_url":"https://avatars.githubusercontent.com/u/12665151?v=3","gravatar_id":"","url":"https://api.github.com/users/web-slinger","html_url":"https://github.com/web-slinger","followers_url":"https://api.github.com/users/web-slinger/followers","following_url":"https://api.github.com/users/web-slinger/following{/other_user}","gists_url":"https://api.github.com/users/web-slinger/gists{/gist_id}","starred_url":"https://api.github.com/users/web-slinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-slinger/subscriptions","organizations_url":"https://api.github.com/users/web-slinger/orgs","repos_url":"https://api.github.com/users/web-slinger/repos","events_url":"https://api.github.com/users/web-slinger/events{/privacy}","received_events_url":"https://api.github.com/users/web-slinger/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T14:46:06Z","updated_at":"2015-11-15T14:46:06Z","body":"My problem was solved when i removed another app version plugin (https://github.com/bgta/net.bgta.phonegap.appversion) they share the same methods thus returning the version code for each."}}