APNSConfig live_activity_token field#875
Conversation
https://firebase.google.com/docs/cloud-messaging/ios/live-activity With this field and this configuration I am able to send LiveActivity start messages: ``` messaging.Message( apns=messaging.APNSConfig( live_activity_token=live_activity_token, payload=messaging.APNSPayload( aps=messaging.Aps( alert=messaging.ApsAlert( title="Live Activity Started", body="Your live activity has been started", ), custom_data = { "input-push-token": 1, "event": "start", "timestamp": int(time.time()), "content-state": { "myAttribute": False }, "attributes-type": "LiveActivityAttributes", "attributes": { "myAttribute": False }, } ), headers={ "apns-priority": "5", }, ), ), token=cloud_messaging_token, ) ```
|
Thank you for this!!! I was able to run a successful "update" event using this code (where |
The |
That worked! As a heads up to anyone testing, I also needed to add apns-push-type and apns-topic to my headers. Very excited for this change! |
|
Hi @plarson, Thank you for your contribution! We appreciate it! |
…ython into phil/live_activity_token
|
Completed in #880 |
|
I know this is already closed and handled on a different PR, but wanted to ask if you guys have been able to successfully close a live activity, i.e. send an |
|
@dr-contributor Could you please open a new issue for this? Please include as many details as you can (or even a minimal repro) so we can get the right team to look at this. Thanks! |
Issue: #857
Docs: https://firebase.google.com/docs/cloud-messaging/ios/live-activity
With this field and this configuration I am able to send LiveActivity start messages: