-
Notifications
You must be signed in to change notification settings - Fork 334
APNSConfig live_activity_token field #875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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! |
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: