Closed arthur-stpnv closed 3 years ago
Hey, I wonder how to add "subtitle" value for iOS push notification, is it possible or not?
The final structure I'm trying to achieve:
{ "aps": { "alert": { "title": "Some title", "subtitle": "Some subtitle", "body": "Some message" } }
Apple Documentation: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html
Found a solution:
subtitle = {'subtitle': "some subtitle"} push_service.notify_single_device(registration_id=registration_id, message_title=title, message_body=body, extra_notification_kwargs = subtitle)
Hey, I wonder how to add "subtitle" value for iOS push notification, is it possible or not?
The final structure I'm trying to achieve:
Apple Documentation: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html