-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alignment with W3C Battery API #24
base: master
Are you sure you want to change the base?
Alignment with W3C Battery API #24
Conversation
- CB-7583 : readonly property called charging - CB-7589 : readonly property called level - CB-7585 : readonly property called chargingTime - CB-7587 : readonly property called dischargingTime - CB-7581 : The W3C battery status specification uses promises.
- CB-7581 : Battery information should be accessible from navigator.getBattery() - CB-7584 : event handler: onchargingchange
Let there be tests |
Is there some way we can rejuvenate this PR? I think this is critical functionality - in particular since the existing implementation does not seem to work on Android 7 as far as I can tell. |
I'm a little confused. It seems, that this is implemented in phonegap (the "mirror" of cordova): |
That is a fork of this plugin:
So while someone did 15 commits on the fork, it also didn't get 33 commits that happened here. |
Addition of the methode navigator.getBattery which return a BatteryManager object using promises to align with the W3C API
Here is the associate Jira issue.
Some notes on the proposed changes:
Also, I was not clear whether there is a coding guideline (formatting, etc) ? I tried to keep it close to the original