当设备关闭然后打开时,AlarmManager 不工作

AlarmManager does not work when device turned off and then turned on

我编写了一个闹钟管理器,它可以正常工作,除非我关闭然后再打开我的设备。似乎未触发 pendingIntent。你现在为什么?

Broadcast Receiver用于后台服务并附加到您的应用程序生命周期