{"id":15659521,"url":"https://github.com/danmichaelo/cordova-plugin-appinfo","last_synced_at":"2025-05-01T10:13:15.100Z","repository":{"id":9785350,"uuid":"11759590","full_name":"danmichaelo/cordova-plugin-appinfo","owner":"danmichaelo","description":"Cordova plugin that provides a method for getting the app version number across platforms (iOs, Android, WP8, Windows)","archived":false,"fork":false,"pushed_at":"2021-09-17T12:16:17.000Z","size":32,"stargazers_count":21,"open_issues_count":1,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-01T10:13:06.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danmichaelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-30T07:50:57.000Z","updated_at":"2021-12-08T02:00:39.000Z","dependencies_parsed_at":"2022-07-08T03:45:15.573Z","dependency_job_id":null,"html_url":"https://github.com/danmichaelo/cordova-plugin-appinfo","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmichaelo%2Fcordova-plugin-appinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmichaelo%2Fcordova-plugin-appinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmichaelo%2Fcordova-plugin-appinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmichaelo%2Fcordova-plugin-appinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danmichaelo","download_url":"https://codeload.github.com/danmichaelo/cordova-plugin-appinfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251857021,"owners_count":21655121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:17:15.471Z","updated_at":"2025-05-01T10:13:15.083Z","avatar_url":"https://github.com/danmichaelo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-plugin-appinfo\n\n[![npm version](https://badge.fury.io/js/cordova-plugin-appinfo.svg)](http://badge.fury.io/js/cordova-plugin-appinfo)\n\nCordova plugin that provides access to the following app info:\n\n* `identifier`: Bundle Identifier on iOS, PackageName on Android. Example: `'org.scriptotek.testapp'`.\n* `version`: CFBundleVersion on iOS, versionName on Android, Version from WMAppManifest.xml on WP8. Example: `'1.0.2'`.\n* `build`: \n\t* iOS: field is `build`. Example: `'1.0.2.1'`.\n\t* Android: field is `versionCode`. Example: `'18'`.\n\t* Windows Phone 8: empty string (not supported).\n\t* Windows universal apps: `version` + `revision`. Example: `'1.0.2.1'`. (Windows 8.1, Windows Phone 8.1, Windows 8.0)\n\n### Installation\n\nThe plugin is [on npm](https://www.npmjs.com/package/cordova-plugin-appinfo), you can install it using:\n\n    cordova plugin add cordova-plugin-appinfo\n\n### Supported Platforms\n\n- Android\n- iPhone\n- Windows\n- WP8 (except build number)\n\n### Usage\n\nThe plugin provides a `navigator.appInfo` object:\n\n```js\nconsole.log('identifier: %s', navigator.appInfo.identifier);\nconsole.log('version: %s', navigator.appInfo.version);\nconsole.log('build: %s', navigator.appInfo.build);\n```\n\nBefore version 2.1, the information had to be accessed through\nasynchronously. This is no longer needed, but the old method\nshown below will be kept for backwards compatibility:\n\n```js\nnavigator.appInfo.getAppInfo(function(appInfo) {\n  console.log('identifier: %s', appInfo.identifier);\n  console.log('version: %s', appInfo.version);\n  console.log('build: %s', appInfo.build);\n}, function(err) {\n\talert(err);\n});\n```\n\n### Contributing\n\nPull requests are welcome.\n\n* @thomas-mullaly added the WP8 implementation\n* @yezhiming added functionality to get identifier and build.\n* @jcesarmobile added synchronous implementation\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanmichaelo%2Fcordova-plugin-appinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanmichaelo%2Fcordova-plugin-appinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanmichaelo%2Fcordova-plugin-appinfo/lists"}