Thank you @Mario1 for the tutorial, as we can see you know how to work with Itoo, you created an impressive example!
However there are 2 major disadvantages of your solution compared to a real alarmmanager like [PAID] ⏰ Alarm Manager Extension with Notification or Autostart :
-
Your solution needs to display a persistent notification in the notification bar as it uses forground service. A real alarmmanager runs without that.
-
Your solution drains the battery heavily... as you set it up, your process checks each second, if the alarm time occurred to then display a notification... even if you do this check only each minute or each hour, you need a process running to check the time. Actually this is like abusing the Android system. A real alarmmanager gets triggered from the Android operation system at the alarm time and then displays the notifiation.
You have shown what could be done using Itoo, but in the end it is not a recommended solution to use in an app.
Did you let your example running a few days so see, if it is still running or if Android finally decides to terminate this heavy process in the background?
Taifun