I use AlarmManager to call BroadcastReceiver . I install it in one of the application activations. After completion of the application AlarmManager does not work. Please tell me how you can solve the problem.
By “application termination” I mean not its folding (for example, through the home button), but the completion, say, through the standard taskkiller.

Tried .set() .setExact() .setExactAndAllowWhileIdle() Also tried to add an application to the whitelist of the battery.

It AlarmManager not necessary to use the AlarmManager , you just need to start the task after a specified time.

When testing using a device with API 23

PS: alarm clocks somehow work: D

  • Does Android have a "standard taskkiller" ?! - woesss
  • @woesss I apologize if I used the wrong term, correct me if I’m wrong (for sure) :) If you click on the hardware button to view recent applications, the menu with windows will open. Usually at the bottom of this "menu" there are several buttons, one of which removes all the windows. In my description of the problem, I meant this case. - Nike
  • github.com/evernote/android-job uses an AlarmManager, GCM or JobScheduler depending on the version of the device. Take it and do not torture yourself. PS Alarm clocks work because they are systemic. - Yura Ivanov

0