I'm building a live activity with push token updates for my app as described in the documentation and implemented in the EmojiRangers example.
The workflow is working fine for fairly new devices (iPhone > 13) - however, the asynchronous pushTokenUpdates
sequence used to observe changes to the push token of a Live Activity is not getting triggered on some older devices (i.e. iPhone XR, iPad 8th Generation).
Is there a minimum device version for this sequence?
This is the code I'm using:
"--------Task--------" gets printed,
"--------PushTokenUpdate--------" does not (on older devices):
do { let activity = try Activity.request( attributes: matchAttributes, content: .init(state: initialContentState, staleDate: nil), pushType: .token ) Task { print("--------Task--------") for await pushToken in activity.pushTokenUpdates { print("--------PushTokenUpdate--------") } } } catch { Logger().error("Error starting LiveActivity: \(String(describing: error))") }