I'm having a hard time trying to implement a background task in flutter. I tried the android_alarm_manager plugin, but as the docs specify the alarm manager is inexact:
Note: Beginning with API 19 (Build.VERSION_CODES.KITKAT) alarm delivery is inexact: the OS will shift alarms in order to minimize wakeups and battery use. There are new APIs to support applications which need strict delivery guarantees; see setWindow(int, long, long, android.app.PendingIntent) and setExact(int, long, android.app.PendingIntent). Applications whose targetSdkVersion is earlier than API 19 will continue to see the previous behavior in which all alarms are delivered exactly when requested.
So a timer that should run periodically every minute, sometimes missed a minute:

To
implement a process that watches the time, or that catches camera movement.
the flutter docs (and other sources) link to a medium article from 2018 where the author shares his experience developing plugins which take advantage of background execution of Dart code. But I have trouble to understand this article and also it seems overwhelming for simple tasks...
I also read about the possibility to use MethodCannel to write platform specific code, but I have never worked with android before and have therefore no clue how to do it.
Is there a simpler way to create a background task in flutter? E.g. imagine a very simple app where the only purpose is to run in the background and check the time. If a quarter of an hour is achieved (e.g 1:15 pm) the app should make a sound. Every half a hour the app should make another sound (e.g. 1:30 pm) and every full hour another another sound (e.g 2 pm).
Doesn't seem like that big kind of a deal, but I don't really know how to do it. Have you some ideas?