Reputation: 1829
Is it possible to keep progressive web application running in background even though the mobile device turns screen lock or off?
Upvotes: 4
Views: 2801
Reputation: 17580
The application stops running as soon as the screen is locked or the device goes to sleep mode. If you want to run JavaScript code in the background, you can use Web Workers.
Upvotes: 5