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

241
Views
AlarmManager.setAlarmClock() not showing alarm in top right corner on Android Pie

I am having an alarm app that sets alarm using following code for devices on Marshmallow and higher:

val alarmIntent: PendingIntent = Intent(context, AlarmReceiver::class.java).let { intent ->
    intent.putExtra(Const.EXTRA_ALARM_ID, alarm.alarmId)
    PendingIntent.getBroadcast(context, 
                               alarm.calculateBroadcastId(dayOfWeek),
                               intent, 
                               PendingIntent.FLAG_UPDATE_CURRENT)
}

alarmManager.setAlarmClock(
            AlarmManager.AlarmClockInfo(calendar.timeInMillis, alarmIntent),
            preAlarmIntent)

It works as expected and shows alarm icon in top right corner (see attachment) on all devices except those devices running Android Pie.

UPDATE: Not on all devices running Android Pie, just Samsung (S8) so far.

Is there any additional code that I should add into the pending intent or somewhere in order to show this icon?

Photo of the device running Android Oreo (OS 8.1) and showing alarm icon as expected: enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

In android Pie restrictions are introduced on the apps running in background.
This is due to new features introduced to improve device power management.

These features are explained in android developer documents in detail.
You can check details in this Link.
Hope it helps you !

over 4 years ago · Santiago Trujillo 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!