W3C home > Mailing lists > Public > public-device-apis-log@w3.org > June 2017

Re: [wake-lock] Clarify state of screen lock after manual lock & unlock

From: Andrey Logvinov via GitHub <sysbot+gh@w3.org>
Date: Wed, 14 Jun 2017 10:32:13 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-308391807-1497436332-sysbot+gh@w3.org>
> On my Android phone, Endomondo seems to require unlocking, whereas Google Maps Navigation does not.

Although I don't have access to Google Maps source code I believe this is achieved using WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED window flag, so it has nothing to do with wake locks, it just allows the window to be shown over the lock screen. When you dismiss that window (e.g. by clicking "back"), you will see the lock screen. 

> Will the screen lock be automatically reinstated

Yes, this was the intent. I agree to changing "when" tho "while".

GitHub Notification of comment by andrey-logvinov
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/102#issuecomment-308391807 using your GitHub account
Received on Wednesday, 14 June 2017 10:32:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:53 UTC