Adding apns-push-type header
This commit is contained in:
+4
-1
@@ -96,7 +96,10 @@ class APNsClient(object):
|
||||
json_str = json.dumps(notification.dict(), cls=self.__json_encoder, ensure_ascii=False, separators=(',', ':'))
|
||||
json_payload = json_str.encode('utf-8')
|
||||
|
||||
headers = {}
|
||||
headers = {
|
||||
'apns-push-type': notification.push_type
|
||||
}
|
||||
|
||||
if topic is not None:
|
||||
headers['apns-topic'] = topic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user