Commit Graph
28 Commits
Author SHA1 Message Date
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
Camille Fabreguettes de18e2990c Implement thread-id option 2017-03-05 14:41:00 +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
Lazarev Ivan 92a04546f9 Fix memory leak of Stream objects in HTTP20Connection 2016-12-25 01:34:45 +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
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
David Zentgraf c72fa0ebc2 Fixing bug in automatic casting of PayloadAlert to dict 2016-08-12 12:31:40 +02: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
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
Matan Gover aebdb08bdc Use Python2-compatible syntax for super. 2016-03-27 12:06:42 +03:00
leovp 4fb9a5ec8f Use proper and more clear parameter name in APNsClient 2016-03-26 12:51:49 +03:00
Leonid R aa2387811a Fixed spelling in client.pyi 2016-03-26 01:46:07 +04:00
Leonid R cd52999f1a Merge pull request #1 from leovp/patch-2
Fixed spelling in errors.py
2016-03-25 23:40:07 +04:00
Leonid R 9b5e57692b Fixed spelling in errors.py 2016-03-25 23:38:37 +04:00
Leonid R 413957fa59 Update client.py according to PEP8 2016-03-25 23:33:26 +04:00
Leonid R 09685404ea Fixed spelling in client.py 2016-03-25 23:30:01 +04:00
Sergey Petrov 515bf64ae4 Add priority option for sending notification 2016-02-09 16:51:42 +03:00
Sergey Petrov 3f61fac159 Add error handling for sending notifications 2016-02-09 16:45:43 +03:00
Sergey Petrov 29f818cf43 Add initial implementation for sending notifications 2016-02-01 13:02:19 +03:00
Sergey Petrov 0f186aed66 Add initial implementation for Payload class 2016-01-28 12:05:16 +03:00
Sergey Petrov 5313b9a3bd Add .idea to ignore files 2016-01-27 15:14:05 +03:00