4

Is there any other way to update the live activities besides using push notifications when the app is in background?

Is it possible to schedule an update, for example?

For context, I have a live activity that needs the content updated 2 hours after it's creation.

I know that the best way to do it is using a push notification, but right now I don’t have the resources to implement this.

I already tried using BackgroundTasks, but they are not very reliable, so I can't trust it.

herd
  • 155
  • 2
  • 19

1 Answers1

-3

you can use pod 'Schedule' to Scheduling a task ex:

        //1. define your plan:
        let plan = Plan.after(3.seconds)

        // 2. do your task:
        let task = plan.do {
            print("3 seconds passed!")
        }

for more details please follow the link: https://github.com/luoxiu/Schedule

kamrul
  • 59
  • 4