[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-dev
Subject:    Re: [webkit-dev] WebKit position on Wake Lock API
From:       Thomas Steiner <tomac () google ! com>
Date:       2020-02-20 10:12:41
Message-ID: CALgRrLmiC3UyYKZT2dhY328q4shDSBqU6066o0vE3MxjbFezrQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Ryosuke, all,

I'm still soliciting a feedback.
> 

Thanks!

For now, I can say we're very much concerned about any impact on battery
> life since that's no.1 thing our users care about. Since even a few
> percentage point of battery life regression would be a major concern, there *needs
> to be extraordinarily good reasons* to add this API;
> 

As pointed out earlier, there is a workaround of playing an invisible video
to keep the screen awake, and people are (ab)using it:
https://github.com/mozilla/standards-positions/issues/210#issuecomment-576203235
.

This proposed API could be a proper way of having this feature, allowing
user agents to display appropriate indications (see
https://blog.tomayac.com/2018/12/18/experimenting-with-the-wake-lock-api/#closing-thoughts
 for
my ideas).

Since the screen is visibly on, the impact on battery life is very
tangible; since there's no hidden background activity or anything that an
app couldn't do anyways. Actually, iOS has started to show (add to home
screen) Web.app activity in the Battery stats, so users can even trace
battery consumption back to web apps.


> I just don't think any of the use cases listed in
> https://w3c.github.io/wake-lock/#introduction are compelling enough to
> meet such a standard.
> 

Looking at the _screen_ wake lock use cases:

* Use turn-by-turn navigation while walking and driving and not interacting
with the phone.
Apple/Google Maps do that and need that on native. Both web apps could use
this as well (Apple Maps is available on the web
https://goo.gle/apple-hq-on-apple-maps, navigation isn't, but here's a
navigation link for Google Maps:
https://goo.gle/old-apple-to-apple-park-google-maps
<https://www.google.com/maps/dir/1+Infinite+Loop,+Cupertino,+CA,+USA/Apple+Park,+One+A \
pple+Park+Way,+Cupertino,+CA+95014,+United+States/@37.3339405,-122.0296041,15z/data=!3 \
m1!4b1!4m14!4m13!1m5!1m1!1s0x808fb5b7176a341d:0x4ae040c5bfc59fcd!2m2!1d-122.0301837!2d \
37.3318115!1m5!1m1!1s0x808fb596e9e188fd:0x3b0d8391510688f0!2m2!1d-122.0090499!2d37.334801!3e2>
 ).

* Allow an external device to read a boarding card with a barcode on a
phone.
Starbucks have publicly requested this feature (combined with the
capability to boost the screen brightness to the maximum brightness:
https://github.com/w3c/wake-lock/issues/129#issuecomment-439713499). Their
PWA is used by many of their customers.

* Showing a presentation where each slide is shown for a prolonged period.
Google Slides has this challenge.

I'm biased, but all of those sound compelling to me.

Cheers,
Tom


[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr">Hi Ryosuke, all,</div><div dir="ltr"><br></div><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I&#39;m still soliciting a \
feedback.<br></div></div></div></div></div></blockquote><div><br></div><div>Thanks!  \
</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"></div><div \
class="gmail_quote"><div>For now, I can say we&#39;re very much concerned  about any \
impact on battery life since that&#39;s no.1 thing our users care about. Since even a \
few percentage point of battery life regression would be a major concern,  there \
<b>needs to be extraordinarily good reasons</b> to add this \
API;</div></div></div></div></div></div></blockquote><div><br></div><div>As pointed \
out earlier, there is a workaround of playing an invisible video to keep the screen \
awake, and people are (ab)using it:  <a \
href="https://github.com/mozilla/standards-positions/issues/210#issuecomment-576203235" \
target="_blank">https://github.com/mozilla/standards-positions/issues/210#issuecomment-576203235</a>.</div><div><br></div><div>This \
proposed API could be a proper way of having this feature, allowing user agents to \
display appropriate indications (see  <a \
href="https://blog.tomayac.com/2018/12/18/experimenting-with-the-wake-lock-api/#closing-thoughts" \
target="_blank">https://blog.tomayac.com/2018/12/18/experimenting-with-the-wake-lock-api/#closing-thoughts</a> \
for my ideas).</div><div><br></div><div>Since the screen is visibly on, the impact on \
battery life is very tangible; since there&#39;s no hidden background activity or \
anything that an app couldn&#39;t do anyways. Actually, iOS has started to show (add \
to home screen) Web.app activity in the Battery stats, so users can even trace \
battery consumption  back to web apps.  </div><div>  </div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div class="gmail_quote"><div>I just don&#39;t think any of the use cases \
listed in  <a href="https://w3c.github.io/wake-lock/#introduction" \
target="_blank">https://w3c.github.io/wake-lock/#introduction</a>  are compelling \
enough to meet such a \
standard.<br></div></div></div></div></div></div></blockquote><div><br></div><div>Looking \
at the _screen_ wake lock use cases:</div><div><br></div><div>* Use turn-by-turn \
navigation while walking and driving and not interacting with the \
phone.</div><div>Apple/Google Maps do that and need  that on native. Both web apps \
could use this as well (Apple Maps is available on the web  <a \
href="https://goo.gle/apple-hq-on-apple-maps">https://goo.gle/apple-hq-on-apple-maps</a>, \
navigation isn&#39;t, but here&#39;s a navigation link for Google Maps:  <a \
href="https://goo.gle/old-apple-to-apple-park-google-maps">https://goo.gle/old-apple-to-apple-park-google-maps</a><a \
href="https://www.google.com/maps/dir/1+Infinite+Loop,+Cupertino,+CA,+USA/Apple+Park,+ \
One+Apple+Park+Way,+Cupertino,+CA+95014,+United+States/@37.3339405,-122.0296041,15z/da \
ta=!3m1!4b1!4m14!4m13!1m5!1m1!1s0x808fb5b7176a341d:0x4ae040c5bfc59fcd!2m2!1d-122.03018 \
37!2d37.3318115!1m5!1m1!1s0x808fb596e9e188fd:0x3b0d8391510688f0!2m2!1d-122.0090499!2d37.334801!3e2"></a>).</div><div><br>* \
Allow an external device to read a boarding card with a barcode on a \
phone.</div><div>Starbucks have publicly requested this feature (combined with the \
capability to boost the screen brightness to the maximum brightness:  <a \
href="https://github.com/w3c/wake-lock/issues/129#issuecomment-439713499">https://github.com/w3c/wake-lock/issues/129#issuecomment-439713499</a>). \
Their PWA is used by many of their customers.</div><div><br>* Showing a presentation \
where each slide is shown for a prolonged period.</div><div>Google Slides has this \
challenge.<br></div><div><br></div><div>I&#39;m biased, but all of those sound \
compelling to me.</div><div><br></div><div>Cheers,</div><div>Tom</div><div><br></div></div></div>




_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic