diff --git a/releases/next/docs/headless-js-android.html b/releases/next/docs/headless-js-android.html index c8d2e70e17b..8849a36b6e8 100644 --- a/releases/next/docs/headless-js-android.html +++ b/releases/next/docs/headless-js-android.html @@ -13,7 +13,7 @@ } return null; } -}
Now, whenever you start your service, e.g. as a periodic task or in response to some system event / broadcast, JS will spin up, run your task, then spin down.
BroadcastReceiver, make sure to call HeadlessJsTaskService.acquireWakelockNow() before returning from onReceive().You can edit the content above on GitHub and send us a pull request!