Я объявляю разрешения в манифесте:
Код: Выделить всё
Код: Выделить всё
fun scheduleRequest(requestId: Long, timestamp: Long) {
val intent = Intent(app, RequestsReceiver::class.java).apply {
putExtra(EXTRA_REQUEST_ID, requestId)
}
alarmManager.setExactAndAllowWhileIdle(
AlarmManager.RTC_WAKEUP,
timestamp,
PendingIntent.getBroadcast(
app,
requestId.hashCode(),
intent,
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
)
}
Я нахожу только информацию о том, что будильники являются неточными и не откладываются намеренно, есть ли какие-либо объяснения и способ обходной путь?
Подробнее здесь: https://stackoverflow.com/questions/792 ... ing-alarms