Skip to content
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

Add support for NotificationType LiveActivity #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rrebase
Copy link

@rrebase rrebase commented Nov 26, 2022

Description

Apple Introduced Live Activities in iOS 16.1, where updates via remote pushes require usage of a new push type liveactivity

From the docs: https://developer.apple.com/documentation/activitykit/update-and-end-your-live-activity-with-remote-push-notifications

  1. Set the value for the apns-push-type header field of the request you sent to APNs to liveactivity.

We can infer it based on the format mentioned in the following statement:

  1. Set the apns-topic header field of the request you sent to APNs using the following format: .push-type.liveactivity.

Test plan

  • Successfully update a live activity with topic com.example.push-type.liveactivity

@rrebase rrebase marked this pull request as ready for review November 26, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants