Skip to content

Commit d77ddbc

Browse files
lordkyzraenglander
authored andcommitted
added apns-push-type to apns_client (#1)
* added apns-push-type to apns_client * Changed setup.py to use setuptools
1 parent 23f7746 commit d77ddbc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apns2/client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def send_notification(self, token_hex, notification, priority=NotificationPriori
4949
json_payload = json_str.encode('utf-8')
5050

5151
headers = {
52-
'apns-priority': priority.value
52+
'apns-priority': priority.value,
53+
'apns-push-type': 'alert'
5354
}
5455
if topic:
5556
headers['apns-topic'] = topic

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
from distutils.core import setup
3+
from setuptools import setup
44

55
dependencies = ['hyper']
66

@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name='pyapns2',
15-
version='0.1.4',
15+
version='0.1.5',
1616
packages=['apns2'],
1717
install_requires=dependencies,
1818
url='https://github.com/Pr0Ger/PyAPNs2',

0 commit comments

Comments
 (0)