- From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Apr 2019 12:52:23 +0000
- To: public-device-apis-log@w3.org
kenchris has just created a new issue for https://github.com/w3c/wake-lock: == screen wake lock should be able to make use of proximy sensor == I thought about this last night, for goodie card or boarding card scanning, you probably want a timeout, but you probably want to zero out or reset the timeout as soon as a scanner is near (proximity) and then only release the wake lock when it is no longer near. Then either you will want to turn off the screen immediately, or continue using the timeout. I would go for the latter as people sometimes pulls device away if scanning fails. I then saw that Android has some support for this: https://developer.android.com/reference/android/os/PowerManager.WakeLock.html#release(int) ![image](https://user-images.githubusercontent.com/1101339/55557024-3babe300-56e9-11e9-9aa7-f9090f407596.png) @tomayac Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/175 using your GitHub account
Received on Thursday, 4 April 2019 12:52:25 UTC