Regarding the payload, here is a working example:
curl -v \
--header "authorization: bearer ${AUTHENTICATION_TOKEN}" \
--header "apns-topic: com.yourcompany.app.ios.push-type.liveactivity" \
--header "apns-push-type: liveactivity" \
--header "apns-priority: 10" \
--header "apns-expiration: 0" \
--data '{"aps":{"timestamp":'$(date +%s)', "event":"start", "content-state": {"currentValue":40000,"targetValue":50000}, "attributes-type":"MyActivityAttributes","attributes":{"currentValue":40000,"targetValue":50000},"alert":{"title":"Almost there!","body":"You have reached 75% of your goal!"}}}' \
--http2 https://api.development.push.apple.com:443/3/device/${PUSH_TO_START_TOKEN}
Topic:
Programming Languages
SubTopic:
Swift
Tags: