问题 Background Android Q seems to have plenty of new restrictions, but alarms shouldn't be one of them: https://developer.android.com/guide/components/activities/background-starts The problem It seems that old code that I made for setting an alarm, which worked fine on P, can't work well anymore: MainActivity.kt class MainActivity : AppCompatActivity() { private lateinit var manager: AlarmManager override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)