{"id":20829706,"url":"https://github.com/androidovshchik/cordova-device-info","last_synced_at":"2025-12-11T22:26:21.378Z","repository":{"id":163353431,"uuid":"319571997","full_name":"androidovshchik/cordova-device-info","owner":"androidovshchik","description":"Simple plugin that provides info about Android device","archived":false,"fork":false,"pushed_at":"2020-12-11T08:48:54.000Z","size":162,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T18:53:32.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/androidovshchik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-08T08:18:28.000Z","updated_at":"2021-01-12T13:58:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cf39a2c-2d6d-48af-976e-da79a1a85b02","html_url":"https://github.com/androidovshchik/cordova-device-info","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidovshchik%2Fcordova-device-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidovshchik%2Fcordova-device-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidovshchik%2Fcordova-device-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androidovshchik%2Fcordova-device-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/androidovshchik","download_url":"https://codeload.github.com/androidovshchik/cordova-device-info/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243179908,"owners_count":20249187,"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-11-17T23:21:41.327Z","updated_at":"2025-12-11T22:26:16.332Z","avatar_url":"https://github.com/androidovshchik.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## cordova-device-info plugin\n\nSimple plugin that provides info about Android device\n\n### Getting started\n\nCreate a new Cordova Project\n\n    $ cordova create example com.example Example\n    \nInstall the plugin\n\n    $ cd example\n    $ cordova plugin add https://github.com/androidovshchik/cordova-device-info.git\n    \n\nEdit `www/js/index.js` and add the following code inside `onDeviceReady`\n\n```js\n// it wrappers this library https://github.com/nisrulz/easydeviceinfo/wiki/Usage\nDeviceInfo.makeReflection(['EasyMemoryMod.getTotalRAM'], function(result) {\n    DeviceInfo.makeReflection(['EasyMemoryMod.convertToMb', result], function(result) {\n        console.log(`Total RAM in mb: ${result}`);\n    });\n});\nDeviceInfo.retrieveIMEI(function(result) {\n    console.log(`IMEI: ${result}`);\n}, function(error) {\n    console.log(`IMEI error: ${error}`);\n    // todo request permission READ_PHONE_STATE\n});\nDeviceInfo.getLanguages(function(result) {\n    console.log(`Languages: ${result}`);\n});\nDeviceInfo.getZoneOffset(function(result) {\n    console.log(`Timezone offset in millis: ${result}`);\n});\nDeviceInfo.observeScreenshots(function(result) {\n    if (result != null \u0026\u0026 result.toLowerCase().includes('screenshot')) {\n        console.log(`Screenshot path: ${result}`);\n    }\n}, function(error) {\n    console.log(`Observe error: ${error}`);\n    // todo request permission READ_EXTERNAL_STORAGE\n});\n```\n\nInstall Android platform\n\n    cordova platform add android\n    \nRun the app\n\n    cordova run android\n\n### Proguard\n\n```\n-keep github.nisrulz.easydeviceinfo.base.** { *; }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroidovshchik%2Fcordova-device-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroidovshchik%2Fcordova-device-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroidovshchik%2Fcordova-device-info/lists"}