Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

81
Views
SCHEDULE_EXACT_ALARM warning despite not programming it

I see the following warning in PlayStore:

 Your use of exact alarms is causing your app to crash for some Android users
Your app schedules exact alarms without checking whether the SCHEDULE_EXACT_ALARM permission has been granted. This is causing your app to crash for users on Android 14 because the permission is no longer granted by default.

In most cases, alternative methods of scheduling work or inexact alarms are more appropriate. If your use of exact alarms is justified, update your app so that it checks this permission is granted before scheduling.

Although, very specifically I only trigger an INACCURATE alarm as follows:

 val alarmManager = context.getSystemService(Context.ALARM_SERVICE) as AlarmManager
 val alarmIntent =
 Intent(context, MediaDownloadAlarmReceiver::class.java).let { intent ->
 PendingIntent.getBroadcast(
 context,
 0,
 intent,
 PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
 }

 val calendar =
 Calendar.getInstance().apply {
 timeInMillis = System.currentTimeMillis()
 set(Calendar.HOUR_OF_DAY, 5)
 set(Calendar.MINUTE, 0)
 }

 // Set the alarm to start at approximately 5:00 am
 alarmManager.setInexactRepeating(
 AlarmManager.RTC_WAKEUP,
 calendar.timeInMillis,
 AlarmManager.INTERVAL_DAY,
 alarmIntent)

Once the alarm goes off, I schedule a one-time worker request:

 override fun onReceive(context: Context?, intent: Intent?) {
 if (context != null) {
 MediaDownloadWorker.scheduleOneTimeRequest(
 context = context,
 source = "background_process")
 }
 }

Any idea what I'm missing?

over 2 years ago · Carlos Garzón Colorado
1 answers
Answer question

0

At first glance, setInexactRepeating() shouldn't require the SCHEDULE_EXACT_ALARM permission. If the Play Console is displaying that warning, it's possible that a dependency, third-party library, or even an older version of your app is internally using methods like setExact() , setExactAndAllowWhileIdle() , or setAlarmClock() .

It's also worth checking if WorkManager, Firebase, or another library related to background tasks is scheduling specific alarms on certain devices or Android versions. I would recommend searching your entire project for references to these methods and reviewing the crash report in Android Vitals to pinpoint the exact trace where the exception occurs. Without that trace, it's difficult to confirm that the displayed code is the source of the warning.

3 months ago · Ruben Alexander Serrano Porras Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!