Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 677 Bytes

File metadata and controls

10 lines (10 loc) · 677 Bytes

Battery-Status

  1. create a project from termainal as ionic start batterystatus blank
    2)cd batterystatus project
    3)Add the required platform in terminal as ionic add platform ****
    4)Add the ng-cordova.min.js file above the cordova.ja file in our project
    5)Insert that 'ngCordova' dependency in app.js file
    6)Add the required plugin to display the battery status
    7)In terminal please type the cmd as cordova plugin add cordova-plugin-battery-status
    8)In app.js I wrote an Controller to display the status of battery and it's functionality please have a look
    9)Please update your cordova platform if the above plugin doesn't work