News for hackers. Stuff that matters.
Re:Your battery status may be used to track you online by y0ghur7_xxx on Tuesday August 02, 2016 @08:28AM (#12209399)
why is this even available to websites?

    navigator.getBattery().then(function(a) {console.log(a);})
https://developer.mozilla.org/en/docs/Web/API/Battery_Status...
Re:Your battery status may be used to track you online by axlee on Tuesday August 02, 2016 @08:36AM (#12209438)
To be able to load a less resource intensive version (i.e. disable animations, reduce refresh rate, remove canvas elements etc...) of a website if the battery is low.
Re:Your battery status may be used to track you online by Aardwolf on Tuesday August 02, 2016 @08:42AM (#12209478)
Then it would certainly be useful to be able to spoof this battery level reported by your browser: then you can always get the less resource intensive versions and surf longer :D
Re:Your battery status may be used to track you online by leni536 on Tuesday August 02, 2016 @08:50AM (#12209530)
Be careful with that, you might see higher prices then.

> “Some companies may be analysing the possibility of monetising the access to battery levels,” he writes. “When battery is running low, people might be prone to some – otherwise different – decisions. In such circumstances, users will agree to pay more for a service.”

Re:Your battery status may be used to track you online by dasboth on Tuesday August 02, 2016 @09:05AM (#12209610)
That just feels so sketchy. What a waste of time and knowledge just to chase more profits.
Re:Your battery status may be used to track you online by jacquesm on Tuesday August 02, 2016 @09:19AM (#12209688)
> What a waste of time and knowledge just to chase more profits.

That describes a scarily large portion of all web stuff.

Re:Your battery status may be used to track you online by dasboth on Tuesday August 02, 2016 @09:37AM (#12209807)
True, but for some reason this one hit a nerve. At least in most cases digital marketing can (at least slightly) benefit the user, but in this case the benefit is 100% with the company. Uber were alleged to charge more for those with low batteries too. Ugh.
Re:Your battery status may be used to track you online by mindslight on Tuesday August 02, 2016 @12:58PM (#12211317)
Marketing used to be beneficial to consumers by helping them become aware of new products and their features. In an era of instant information search and retrieval, this is no longer necessary. It's all zero-sum spam intended to overwhelm one's decision making capabilities coupled with surveillance to enable better price discrimination.
Re:Your battery status may be used to track you online by OMGWTF on Tuesday August 02, 2016 @10:30AM (#12210206)
Practically nobody cares about not draining your battery. All they care about is your attention and/or your wallet.
Re:Your battery status may be used to track you online by xorcist on Tuesday August 02, 2016 @08:53AM (#12209546)
If the battery already is too low, it's kind of late to switch to a less resource intensive web page. That should have been done from the beginning.
Re:Your battery status may be used to track you online by gakada on Tuesday August 02, 2016 @09:10AM (#12209644)
I agree. The correct way to discriminate between low- and high-resource requiring functionality is "on battery" vs "plugged in". The specific battery level is completely useless.
Re:Your battery status may be used to track you online by leni536 on Tuesday August 02, 2016 @09:44AM (#12209858)
The API makes this information available too.
Re:Your battery status may be used to track you online by Globz on Tuesday August 02, 2016 @08:41AM (#12209465)
Yea ok...but who does that really ? lets face it, this is just some extra signals so they can track you more easily. I know it was never intended to be used as tracking information but the least they could do is be less precise about your battery percentage.
Re:Your battery status may be used to track you online by rtpg on Tuesday August 02, 2016 @08:42AM (#12209477)
This is less of an issue if websites prompted you. I think the iOS permission model (which is what the web is going towards) is a pretty good model.

This lets sites who want to do "real things" with battery levels have access, without it being available "for free" (prompt is annoying).

Re:Your battery status may be used to track you online by TeMPOraL on Tuesday August 02, 2016 @08:54AM (#12209553)
This is ridiculous IMO. Instead of providing false (or "less precise") data let's not provide that data in the first place.

My guess is this is just another part of the attempt to move desktop features to the web browsers so that people don't have to write actual applications. Personally, I don't like this trend.

Re:Your battery status may be used to track you online by braythwayt on Tuesday August 02, 2016 @09:05AM (#12209611)
As I noted elsewhere, it’s about more than “so that people don’t have to write actual applications” (although I grant you that you have identified a real thing).

For the ideologically inclined, it’s also about disintermediating the relationship between users and developers. Web sites don’t need an app store.

Re:Your battery status may be used to track you online by braythwayt on Tuesday August 02, 2016 @08:54AM (#12209555)
Websites? No.

Web applications served over HTTP, on the other hand...

Mozilla have it as part of their mission to make technology open and accessible (insert DRM debate here). Native apps have been thrown behind the app store “walled garden.” So, they want to make it possible to create rich apps over HTTP.

Thus, you find things like this available to web pages.