I want to receive ACTION_USER_PRESENT for unlock event in background and also when the app is killed i.e when app is removed from recent apps.
If I use headless JS for background processing where should I register and unregister receiver. Also, where to define intent-filter so that it will always run in background and also when the app is killed.