{"id":28451071,"url":"https://github.com/s1lviu/cordova-plugin-uptime","last_synced_at":"2026-03-15T16:39:12.905Z","repository":{"id":57154848,"uuid":"127948818","full_name":"s1lviu/cordova-plugin-uptime","owner":"s1lviu","description":"Cordova plugin which provides system uptime","archived":false,"fork":false,"pushed_at":"2024-04-29T07:27:08.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T16:09:03.063Z","etag":null,"topics":["android","cordova-plugin","device-uptime","ionic","ionic-cordova","ionic-framework","ionic-native","ionic2","ionic3","ios","uptime","uptime-plugin"],"latest_commit_sha":null,"homepage":"https://silviustroe.com/","language":"Objective-C","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/s1lviu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-03T18:07:39.000Z","updated_at":"2024-04-29T07:27:12.000Z","dependencies_parsed_at":"2024-04-29T08:48:54.212Z","dependency_job_id":null,"html_url":"https://github.com/s1lviu/cordova-plugin-uptime","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":"0.032258064516129004","last_synced_commit":"51222ce6a29f412328e3a2bbed2a16dd526b14fe"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s1lviu/cordova-plugin-uptime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lviu%2Fcordova-plugin-uptime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lviu%2Fcordova-plugin-uptime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lviu%2Fcordova-plugin-uptime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lviu%2Fcordova-plugin-uptime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s1lviu","download_url":"https://codeload.github.com/s1lviu/cordova-plugin-uptime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s1lviu%2Fcordova-plugin-uptime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260346855,"owners_count":22995144,"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":["android","cordova-plugin","device-uptime","ionic","ionic-cordova","ionic-framework","ionic-native","ionic2","ionic3","ios","uptime","uptime-plugin"],"created_at":"2025-06-06T16:08:59.778Z","updated_at":"2026-03-15T16:39:07.859Z","avatar_url":"https://github.com/s1lviu.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-plugin-uptime\n\nThis plugin provides the system uptime in milliseconds since boot, allowing developers to track how long a device has been running. This can be particularly useful for monitoring, diagnostics, or adding uptime information within an application.\n\n## Installation\n\n```bash\n$ ionic cordova plugin add cordova-plugin-uptime\n$ npm install --save @ionic-native/uptime\n```\n\n## Supported Platforms\n\n- Android\n- iOS\n\n## Usage\n\n**Ionic Framework 2+ - TypeScript**\n\n```typescript\nimport { Uptime } from '@ionic-native/uptime';  \n\nconstructor(private uptime: Uptime) { }  \n\n// ...\n\nthis.uptime.getUptime(includeDeepSleep)\n  .then((uptime) =\u003e console.log('Uptime (ms): ', uptime))\n  .catch((error) =\u003e console.log('Error: ', error));\n```\n\n**ES5 usage:**\n\n```javascript\nUptime.getUptime(includeDeepSleep,\n    function(uptime) { \n        console.log('Uptime (ms): ', uptime);\n    },\n    function(err) {  \n        console.log('Error: ', err);\n    }\n);\n```\n\nThe `includeDeepSleep` is a boolean parameter. If set to true, the returned uptime includes the total uptime (including device sleeping time). Otherwise, it will be the uptime considering clock stops when the system enters deep sleep (CPU off, display dark, device waiting for external input), but is not affected by clock scaling, idle, or other power-saving mechanisms.\n\n## Contributing\n\nIf you would like to contribute to this plugin, please feel free to submit a pull request or open an issue on our [GitHub repository](https://github.com/s1lviu/cordova-plugin-uptime).\n\n## Author\n\nThis plugin is made with :heart: by [Silviu Stroe](https://silviu-s.com/)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs1lviu%2Fcordova-plugin-uptime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs1lviu%2Fcordova-plugin-uptime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs1lviu%2Fcordova-plugin-uptime/lists"}