H5 background operation

if you stay in the background and continue to locate after the phone is turned off

We are using h5 to develop app. Now there is a requirement that after the phone is turned off, the location can be executed all the time, and then the location information can be sent to the background server. It has been found that timers are used to execute the code, but after the phone is turned off, the timer is no longer executed a few minutes later. Is there any screen shutdown event, or a way to keep the program running in the background?

Apr.13,2022

after checking the screen for a while, the browser will be out of memory, so it is difficult to implement your scenario.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44772-44acd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44772-44acd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?