digitransit-ui icon indicating copy to clipboard operation
digitransit-ui copied to clipboard

Digitransit-ui should keep phone/tablet screen on

Open kalon33 opened this issue 9 years ago • 5 comments

When using digitransit-ui, phone or tablet screen shouldn't switch off, in order to better follow or read itineraries.

kalon33 avatar Mar 16 '16 17:03 kalon33

Isn't this impossible to do at the moment for a web application?

Would require something like

  • https://www.w3.org/TR/wake-lock/
  • or maybe looping playing a silent sound

Any more ideas?

Macroz avatar Mar 22 '16 14:03 Macroz

Closing this for now, pretty challengin on current technology

samuliheljo avatar Apr 04 '16 11:04 samuliheljo

@kalon33 perhaps you could test this? https://github.com/richtr/NoSleep.js

tuukka avatar Apr 04 '16 11:04 tuukka

@tuukka Sure, that seems a pretty good idea, will try that. So why it would be "challenging with your current technology" to use it in itinerary view only? It is very useful for navigating...

BTW, if it's a battery draining problem, unfortunately, Digitransit currently performs it perfectly without that (see issue #474 )...

----- Mail original -----

De: "Tuukka Hastrup" [email protected] À: "HSLdevcom/digitransit-ui" [email protected] Cc: "Nicolas Derive" [email protected] Envoyé: Lundi 4 Avril 2016 13:57:18 Objet: Re: [HSLdevcom/digitransit-ui] Digitransit-ui should keep phone/tablet screen on (#450)

@kalon33 perhaps you could test this? https://github.com/richtr/NoSleep.js

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub

kalon33 avatar Apr 04 '16 12:04 kalon33

I was probably little too hasty, see macroz comment above mine.

Reopening.

On Monday, 4 April 2016, Nicolas Derive [email protected] wrote:

@tuukka Sure, that seems a pretty good idea, will try that. So why it would be "challenging with your current technology" to use it in itinerary view only? It is very useful for navigating...

BTW, if it's a battery draining problem, unfortunately, Digitransit currently performs it perfectly without that (see issue #474 )...

----- Mail original -----

De: "Tuukka Hastrup" <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> À: "HSLdevcom/digitransit-ui" <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> Cc: "Nicolas Derive" <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> Envoyé: Lundi 4 Avril 2016 13:57:18 Objet: Re: [HSLdevcom/digitransit-ui] Digitransit-ui should keep phone/tablet screen on (#450)

@kalon33 perhaps you could test this? https://github.com/richtr/NoSleep.js

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/HSLdevcom/digitransit-ui/issues/450#issuecomment-205268285

Samuli Heljo +358 50 3537299

samuliheljo avatar Apr 04 '16 13:04 samuliheljo