Android 5.0 的两次准确警报触发之间的最短持续时间是多少?
What is the minimum duration between 2 exact alarm trigger for Android 5.0?
我正在使用 AlarmManager.setExact
在 API 级别 21(lollypop)上触发重复警报 https://developer.android.com/reference/android/app/AlarmManager.html#setExact(int,长,android.app.PendingIntent)
但是我的广播接收器没有始终如一地接收到挂起的意图。
2个确切的警报触发之间的持续时间是否有任何限制?
搜索了一段时间后,我发现唯一的限制适用于 API 级别 23 上的 setExactAndAllowWhileIdle
。来自文档 "Under normal system operation, it will not dispatch these alarms more than about every minute (at which point every such pending alarm is dispatched); when in low-power idle modes this duration may be significantly longer, such as 15 minutes."
另外 AlarmManager.setExact
API 21 级 Android 5.0 有一些与之相关的错误,这些错误后来在 API 22 级 Android 5.1 上修复(LOLLIPOP_MR1)
我正在使用 AlarmManager.setExact
在 API 级别 21(lollypop)上触发重复警报 https://developer.android.com/reference/android/app/AlarmManager.html#setExact(int,长,android.app.PendingIntent)
但是我的广播接收器没有始终如一地接收到挂起的意图。
2个确切的警报触发之间的持续时间是否有任何限制?
搜索了一段时间后,我发现唯一的限制适用于 API 级别 23 上的 setExactAndAllowWhileIdle
。来自文档 "Under normal system operation, it will not dispatch these alarms more than about every minute (at which point every such pending alarm is dispatched); when in low-power idle modes this duration may be significantly longer, such as 15 minutes."
另外 AlarmManager.setExact
API 21 级 Android 5.0 有一些与之相关的错误,这些错误后来在 API 22 级 Android 5.1 上修复(LOLLIPOP_MR1)