The Pushwoosh iOS SDK does not manage presentation properties of a Live Activity. It only registers activity tokens on the device - Pushwoosh.LiveActivities.sendPushToStartLiveActivity(token:) for the push-to-start token and Pushwoosh.LiveActivities.startLiveActivity(token:activityId:) for an activity update token (or the setup / defaultSetup helpers, which handle the whole lifecycle for you).
Everything the system renders comes from the payload your backend sends through the Live Activities REST API.
What you can send
-
/startLiveActivity- starts an activity remotely. Insidelive_activity:event,title,content-state,attributes-type,attributes. The alert text shown when the activity starts comes from the notification'scontentandtitlefields. -
/updateLiveActivity- updates or ends an activity. Insidelive_activity:event(updateorend),title,content-state,relevance-score,stale-date,dismissal-date.
Use relevance-score to control which activity is promoted in the Dynamic Island - a higher number means higher priority. A dedicated sound field is not part of the documented request body; check the iOS Live Activities API reference before relying on any field not listed above.
How the payload travels
- Your server calls
/startLiveActivityor/updateLiveActivity. - Pushwoosh forwards the payload to the Apple Push Notification service (APNs).
- APNs delivers it to the device.
- iOS renders the update, for example in the Dynamic Island.
Comments
0 comments
Please sign in to leave a comment.