How can I use Static Broadcast Receiver or similar service in Android API 30 device?

I want to schedule a task for every minute on my application and want the task to be executed even when the application/activity is not opened in foreground. How can I achieve that? I am running my application on an Android emulator on API 30.

Source: Android Questions

LEAVE A COMMENT