Pushjack v1.0.0 has been released.
It was the first major version release with several breaking changes. Most of the breaking changes were related to cleaning up and removing parts of the API to simplify the overall implementation. There are no longer two ways to send a notification (one using a client class and one using a module function). Instead, client classes are the one way to do that. The configuration object has also been removed and replaced with initialization parameters to the client classes. And finally the APNS send method now returns an object (just like GCM sending does) instead of raising an exception.
For more details, please see the Upgrade Guide.
What is pushjack?
Library for sending APNS (Apple) and GCM (Android) push notifications.
It is Python 2.6+ and 3.3+ compatible.
Add APNSSandboxClient for sending notifications to APNS sandbox server.
Add message attribute to APNSResponse.
Add internal logging.
Make APNS sending stop during iteration if a fatal error is received from APNS server (e.g. invalid topic, invalid payload size, etc).
Make APNS and GCM clients maintain an active connection to server.
Make APNS always return APNSResponse object instead of only raising APNSSendError when errors encountered. (breaking change)
Remove APNS/GCM module send functions and only support client interfaces. (breaking change)
Remove config argument from APNSClient and use individual method parameters as mapped below instead: (breaking change)
- APNS_ERROR_TIMEOUT => default_error_timeout
- APNS_DEFAULT_EXPIRATION_OFFSET => default_expiration_offset
- APNS_DEFAULT_BATCH_SIZE => default_batch_size
Remove config argument from GCMClient and use individual method parameters as mapped below instead: (breaking change)
- GCM_API_KEY => api_key
Remove pushjack.clients module. (breaking change)
Remove pushjack.config module. (breaking change)
Rename GCMResponse.payloads to GCMResponse.messages. (breaking change)
- Fix APNS error checking to properly handle reading when no data returned.