Commit Graph
69 Commits
Author SHA1 Message Date
Sergey Petrov b26f2e92e4 version bump -> 0.4.0 0.4.0 2018-05-07 19:29:46 +03:00
Sergey Petrov ccfaf75398 Add timestamp field for Unregistered exception
Fix #61
2018-05-07 19:28:06 +03:00
Pavel Valach d071ec1864 Always use TLS with HTTP20Connection 2017-12-18 13:36:38 +03:00
Pavel Valach d3d75d1073 client.connect(): after error, close the connection
Otherwise, the next self._connection.connect() call will not try again. In fact, it will do nothing. It won't raise the exception again.

Therefore, closing the connection before retrying is mandatory.
2017-12-18 13:34:39 +03:00
Jordi Sesmero a3244df06d add proxy support to connection (#46) 2017-11-28 13:23:55 +03:00
SearchDream bbe8528acf Fix _is_expired_token issues (#47) 2017-11-17 15:59:33 +03:00
Sergey Petrov c272fa8bf2 Add support for build stages 2017-05-26 01:12:47 +03:00
Sergey Petrov 653b37054d Improve code quality 2017-05-23 00:45:08 +03:00
Sergey Petrov e10319b78d Make topic parameter optional again 2017-05-14 02:11:43 +03:00
Sergey Petrov e454a79d7f version bump -> 0.3.0 0.3.0 2017-05-09 23:29:02 +03:00
Sergey Petrov d9b3d2c917 Update list of exceptions 2017-05-09 23:27:32 +03:00
Sergey Petrov 3b6e1dcc4c Added capability to pass in cert-key tuple instead of chain certificate file to the APNs client
Close #26
2017-05-09 22:57:34 +03:00
Peter Justin 7783520dc3 load certificate with password
Readded because the last commit removed this.
2017-05-09 15:22:08 +03:00
Masa ae835a195f Enable JWT authentication in addition to old certificate authentication (#40) 2017-05-03 23:15:26 +03:00
Roman Gorbil 164d146940 Add parameter collapse_id
This is APNS header `apns-collapse-id` used to group
notifications. Read more here:
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html#//apple_ref/doc/uid/TP40008194-CH11-SW13
2017-05-02 22:06:11 +03:00
Jerome Leclanche 7aff9f0321 Make server and port easier to override in subclasses
- Change __connection to _connection
- Move connection initialization to a separate _init_connection method
- Pick the default host and port values from class attributes

Refs #33
2017-03-22 11:13:09 +03:00
erhuabushuo 4f0f73fd7d load_cert_chain support to pass password parameter (#35)
* support pass password paramter to load cert file

* load_cert_chain support to pass password parameter
2017-03-20 12:14:05 +03:00
Sergey Petrov 3d1cf8a144 version bump -> 0.2.1 0.2.1 2017-03-05 14:43:38 +03:00
Camille Fabreguettes de18e2990c Implement thread-id option 2017-03-05 14:41:00 +03:00
Jason Douglas 7fe9d6aa91 README is missing topic argument 2017-03-05 14:27:33 +03:00
Sergey Petrov 3792bc7df8 version bump -> 0.2.0 0.2.0 2017-02-09 00:26:01 +03:00
Sergey Petrov df90e0a7b6 Fix classifiers in setup.py 2017-02-09 00:26:01 +03:00
Sergey Petrov 5e8727132a TravisCI now will automatically deploy to PyPI 2017-02-09 00:18:20 +03:00
Sergey Petrov 48b4acfa76 Remove Python 3.3 from README 2017-01-30 17:09:04 +03:00
Sergey Petrov 9e2fd44a30 Enable CI (#28) 2017-01-25 17:39:04 +03:00
Matan Gover 701b587c32 Support sending notifications in batch. (#27) 2017-01-23 20:10:35 +03:00
Sergey Petrov 1262d6c2bd Remove stub files 2017-01-09 21:32:58 +03:00
Sergey Petrov d3a841265e Add support for Safari Push Notifications 2017-01-08 23:13:02 +03:00
Sergey Petrov b917868b15 Adjust settings for linters (#23) 2017-01-08 13:07:22 +03:00
Sergey Petrov d72990625f version bump -> 0.1.3 0.1.3 2016-12-25 01:37:03 +03:00
Lazarev Ivan 92a04546f9 Fix memory leak of Stream objects in HTTP20Connection 2016-12-25 01:34:45 +03:00
Sergey Petrov 15ca6f6b62 Update Apple doc reference 2016-12-06 18:03:53 +03:00
Hanno Zulla 760cec6851 Allow using custom JSON conversion class. (#15) 2016-10-20 20:02:02 +03:00
Hanno Zulla c51aceb64e Fix payload behaviour for empty strings / 0 values. (#16) 2016-10-20 19:12:33 +03:00
Sergey Petrov 2b8bbced17 version bump -> 0.1.2 0.1.2 2016-10-10 20:36:59 +03:00
Vadim Semenov 0b81732a4b Add support for iOS 10 "mutable-content" flag.
This change mirrors the following pull request from the original PyAPNs repo:
https://github.com/djacobs/PyAPNs/pull/174
2016-10-10 15:04:15 +03:00
Sergey Petrov f79e3a6e20 Merge pull request #13 from deceze/master
Fixing bug in automatic casting of PayloadAlert to dict
2016-08-13 23:24:49 +04:00
David Zentgraf c72fa0ebc2 Fixing bug in automatic casting of PayloadAlert to dict 2016-08-12 12:31:40 +02:00
Sergey Petrov c65723595f Merge pull request #10 from 72squared/master
support for apns-expiration header …
2016-06-21 21:18:40 +04:00
John Loehrer cdc0a3dc49 support for apns-expiration header https://developer.apple.com/library/tvos/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html 2016-06-20 09:35:25 -07:00
Sergey Petrov 9dfdc79a55 Version bump -> 0.1.1 0.1.1 2016-05-27 12:57:13 +03:00
Sergey Petrov 281022aca7 Merge pull request #9 from firkeuf/master
Some changes in client.py for hyper v0.6.0
2016-05-27 13:55:28 +04:00
firkeuf 1c16d81e46 Update client.py
should add force_proto else get proto = None and crash

hyper/http20/connection.py", line 354
assert proto in H2_NPN_PROTOCOLS or proto == H2C_PROTOCOL
2016-05-13 14:08:55 +03:00
firkeuf 50c5920592 Update client.py
hyper > common > util > to_bytestring
can not convert INT to byte
and raise ValueError("Non string type.")
2016-05-13 12:02:10 +03:00
Sergey Petrov 28996fc73c Remove unneeded super call 2016-04-08 15:08:23 +03:00
Sergey Petrov f636a99093 Merge pull request #5 from matangover/master
Python 2 compatibility
2016-04-03 17:13:08 +04:00
Matan Gover 83988c9f8c Fix dependency specification in setup.py. 2016-03-27 12:16:07 +03:00
Matan Gover aebdb08bdc Use Python2-compatible syntax for super. 2016-03-27 12:06:42 +03:00
Sergey Petrov cf8f5aef71 Merge pull request #3 from leovp/master
Use proper and more clear parameter name in APNsClient
2016-03-26 15:40:16 +04:00
Sergey Petrov 78067ce166 Add support for CodeClimate 2016-03-26 13:58:41 +03:00