Commit Graph
7 Commits
Author SHA1 Message Date
Sergey Petrov fde28abb04 Add type annotations (PEP 484) (#25) 2019-07-29 01:26:15 +03:00
Sergey Petrov be7438a653 Using pytest from now on 2019-06-02 19:39:40 +03:00
shintonik fbcf36f955 Use only one JWT token per connection (#80)
This fixes #76 where you a TooManyProviderTokenUpdates if you send
notifications to multiple topics over one connection.

As Apple states here https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns#2943374
one connection shall use only one single JWT token which should be
refreshed no more than once every 20 minutes and no less than once every
60 minutes.
2019-05-23 02:01:31 +03:00
SearchDream bbe8528acf Fix _is_expired_token issues (#47) 2017-11-17 15:59:33 +03:00
Masa ae835a195f Enable JWT authentication in addition to old certificate authentication (#40) 2017-05-03 23:15:26 +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