Hey, geeks!
After posting a mini tutorial about developing Ionic Native plugins, I’ve decided to show you my first Cordova plugin, with Android & iOS platform support and compatible with Ionic Native.
The plugin name is cordova-plugin-uptime, is under MIT license and you can find the TypeScript wrapper documentation for the Ionic Native support on their website and the source code on Ionic Native github.
It returns the monotonic up time, with possibility of including or not the device deep sleep using the
includeDeepSleep
parameter.
I made this for getting how things works with Cordova – learning – and giving the Ionic community back a piece of my appreciation.
References:
https://github.com/s1lviu/cordova-plugin-uptime https://www.npmjs.com/package/cordova-plugin-uptime https://ionicframework.com/docs/native/uptime/
Hi,
I’m using your plugin and I noticed that the parameter “includeDeepSleep” is not showed with ionic 3 and visual studio code ?
Do you noticed this problem ?
Oops, this comment arrived in spam, but solved here.