swift – How to continuously update iOS LiveActivity without push notifications?


I’m trying to expand my app with a feature that can be found in various music streaming apps: Display a LiveActivity on the lockscreen that shows a currently running event with remaining time. After this event has expired, the next one should be displayed, and so on.
I would like to achieve this without using push notifications (too complex for my purposes).

What I’ve tried so far:

  • Run a timer, but it stops a few seconds after the app is sent to
    the background.
  • Start a background task, but the system does not
    execute it reliably, but rather at its own discretion.

All tutorials I found only implement updates from the active app, e.g. via buttons.

Question: Is this even possible without push notification?

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img