News for hackers. Stuff that matters.
Re:Your battery status may be used to track you online by brlewis on Tuesday August 02, 2016 @09:37AM (#12209804)
E.g. weather app that automatically fetches new weather data periodically, but stops when battery is low. That said, you're right that the only data you need for such purposes is binary. The current API provides too much info.
Re:Your battery status may be used to track you online by zaroth on Tuesday August 02, 2016 @10:24AM (#12210133)
If it's a native app, then it can already do this. If it's a web app, then hopefully it's only fetching updates if the tab is visible, right? I absolutely think web apps should be checking if their tab is foreground and behaving differently based on that.
Re:Your battery status may be used to track you online by brlewis on Tuesday August 02, 2016 @11:09AM (#12210485)
What if I want a notification that rain is coming? https://developer.mozilla.org/en-US/docs/Web/API/Notificatio...
Re:Your battery status may be used to track you online by zaroth on Tuesday August 02, 2016 @11:27AM (#12210635)
So what you're saying is that on top of having to deal with low battery, now you're also getting caught in the rain? :-)

Don't tell Steve, but if I want to save battery, I swipe closed the browser. If I sign up for rain notifications, I better get my darn rain notification!

Re:Your battery status may be used to track you online by brlewis on Tuesday August 02, 2016 @12:09PM (#12210946)
No, I'm not talking about low battery. You suggested that the app stop checking for weather updates when its tab is not in the foreground. If I do that then I get caught in the rain even with a full battery.
Re:Your battery status may be used to track you online by x1798DE on Tuesday August 02, 2016 @02:22PM (#12211986)
Hopefully browser tabs don't have any way of triggering system notifications, in which case how would it matter if a webapp stopped automatically updating when the window loses focus?
Re:Your battery status may be used to track you online by Retra on Tuesday August 02, 2016 @10:23PM (#12215142)
How's it going to notify you if you're not looking at the web page?
Re:Your battery status may be used to track you online by brlewis on Friday August 05, 2016 @01:06PM (#12233989)
See my link above to the notifications API.