Skip to content
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

Battery level #54

Open
toji opened this issue Jan 3, 2017 · 5 comments
Open

Battery level #54

toji opened this issue Jan 3, 2017 · 5 comments

Comments

@toji
Copy link
Member

toji commented Jan 3, 2017

Simple feature request: For controllers where it's applicable and that expose it, it would be nice to be able to advertise the battery charge level. Could be used for on-screen prompts (telling players that their battery is low and they may want to charge/change batteries before continuing) or in VR cases for displaying battery level on the in-world controller model, which is becoming a common practice.

@cvan
Copy link
Contributor

cvan commented Jan 3, 2017

I would assume we would likely share the interfaces from the navigator.getBattery API (which is obviously intended for batteries for PCs/mobile devices).

@cvan
Copy link
Contributor

cvan commented Jan 3, 2017

With orientation, pose, display info, gamepad info, and now gamepad battery level, it's probably worth reiterating the potential concern of trivial user fingerprinting. The topic is not exclusive to the VR/gamepad use cases, but obviously with more i/o, more possible vectors.

@msisov
Copy link
Member

msisov commented Jan 18, 2017

Hi,

One possible solution to this could be adding levels of charge: charged, half charged, low battery. With threshold of 1/3.

@mccordgh
Copy link

Hi there,
looking to get involved in this project and this seems like it could be a simpler task for someone newer to open-source contribution. Wondering the best way to go about using the navigator.getBattery interface to potentially return something like a 1 out of 100 for battery level?

@sgraham sgraham added the v2 label Feb 14, 2018
@marcoscaceres marcoscaceres added Priority and removed v2 labels Sep 20, 2019
@marcoscaceres
Copy link
Member

We (Editors) still think this is worth pursuing... we hope to come back to this at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants