Monitor Device Battery Status Using Ionic Framework

added by bpwndaddy
7/6/2015 2:59:16 PM

1 Kicks, 268 Views

So you’re making a mobile app using Ionic Framework and you care about the experience your users receive? Maybe you want to control the functionality of certain features based on how much battery the users device has left. An example of this is, maybe you have your application pulling remote data while the application is open. Maybe you’ve decided that if your users battery is less than 30% you want the user to have to pull-to-refresh in order to preserve battery life. This kind of battery monitoring can be performed through the cordova-plugin-battery-status plugin by Apache Cordova.


0 comments