0

I am trying to create an app with live activity showing when user enters and exit a region. I have location manager setup and region setup in my app. App sends local push notification when user enters and exits a region. I want to show live activity view with push notification when user enters region. I tried using 'didEnterRegion' delegate. But I am getting the error Error requesting Live Activity: The operation couldn’t be completed. Target is not foreground.. Is there any workaround for this?

Faheem Rahman
  • 343
  • 2
  • 10

1 Answers1

0

This is not possible. A Live Activity can only be started when the app is in foreground based on documentation.

Your best bet is to send the notification, have the user open your app, and start the Live Activity.

iSpain17
  • 2,502
  • 3
  • 17
  • 26