I have a service which runs every hour using ServiceStartAt(...). I bring it to the foreground while it is working with StartForeground, then when it is finished I issue a StopForeground. I think this is working as planned.
However, when it is running, for some reason the time in the Ongoing notifications is actually the time the service started the very first time. Is there a way to change that to the last time the StartForeground was issued? Or maybe I am not using ServiceStartAt properly? Or do I need to destroy the service when I am finished (I do not know if the ServiceStartAt will reschedule if I do that.)
It just looks confusing when it is 10am and the ongoing notification says 7am (which is when I first started the service in this case).
Thanks,
Craig
However, when it is running, for some reason the time in the Ongoing notifications is actually the time the service started the very first time. Is there a way to change that to the last time the StartForeground was issued? Or maybe I am not using ServiceStartAt properly? Or do I need to destroy the service when I am finished (I do not know if the ServiceStartAt will reschedule if I do that.)
It just looks confusing when it is 10am and the ongoing notification says 7am (which is when I first started the service in this case).
Thanks,
Craig