Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apns2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class NotificationType(Enum):
VoIP = 'voip'
Complication = 'complication'
FileProvider = 'fileprovider'
LiveActivity = 'liveactivity'
MDM = 'mdm'


Expand Down Expand Up @@ -117,6 +118,8 @@ def send_notification_async(self, token_hex: str, notification: Payload, topic:
inferred_push_type = NotificationType.Complication.value
elif topic.endswith('.pushkit.fileprovider'):
inferred_push_type = NotificationType.FileProvider.value
elif topic.endswith('.push-type.liveactivity'):
inferred_push_type = NotificationType.LiveActivity.value
elif any([
notification.alert is not None,
notification.badge is not None,
Expand Down