title: Notifications are not shown when the app is killed
body: <p>My task is to make every day notification schedule at a certain time. At the moment I have the current implementation:</p>
  <pre><code>fun scheduleRepeatingRTCNotification(context: Context, hour: Int, min: Int) {
      val calendar: Calendar = Calendar.getInstance()
      calendar.timeInMillis = System.currentTimeMillis()
      calendar.set(Calendar.HOUR_OF_DAY, hour)
      calendar.set(Calendar.MINUTE, min)
      calendar.set(Calendar.SECOND, 0)
      
      val intent = Intent(context, AlarmReceiver::class.java)
      alarmIntentRTC = PendingIntent.getBroadcast(
          context,
          ALARM_TYPE_RTC,
          intent,
          PendingIntent.FLAG_UPDATE_CURRENT
      )
      alarmManagerRTC = context.getSystemService(ALARM_SERVICE) as AlarmManager
      alarmManagerRTC!!.setRepeating(
          AlarmManager.RTC,
          calendar.timeInMillis, AlarmManager.INTERVAL_DAY, alarmIntentRTC
      )
  }
  </code></pre>
  <p>Also my broadcast receiver class:</p>
  <pre><code>class AlarmReceiver : BroadcastReceiver() {
  
  
  override fun onReceive(context: Context, intent: Intent) {
      val intentToRepeat = Intent(context, MainActivity::class.java)
      intentToRepeat.flags = Intent.FLAG_ACTIVITY_CLEAR_TOP
      
      val pendingIntent = PendingIntent.getActivity(
          context,
          NotificationHelper.ALARM_TYPE_RTC,
          intentToRepeat,
          PendingIntent.FLAG_UPDATE_CURRENT
      )
      
      val repeatedNotification: Notification =
          buildLocalNotification(context, pendingIntent).build()
      
      NotificationHelper.getNotificationManager(context)
          .notify(NotificationHelper.ALARM_TYPE_RTC, repeatedNotification)
  }
  </code></pre>
  <p>This code works except when the app is killed, when the app is killed the notification appears only when the app is started. Is there any way to make the notification appear even when the app is killed ? I tried Work Manager, Services, the same behavior everywhere.</p>