Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit error when APNs notification is larger than 256 bytes #50

Open
nhooey opened this issue Jun 15, 2013 · 0 comments
Open

Emit error when APNs notification is larger than 256 bytes #50

nhooey opened this issue Jun 15, 2013 · 0 comments

Comments

@nhooey
Copy link

nhooey commented Jun 15, 2013

Currently the pyapns.server.encode_notifications() function doesn't check if its encoded payload size is above the 256 bytes limited by the Apple APNs server.

The function should at least emit an error, but providing a facility to truncate one of the keys' values in the aps dictionary passed to the function down to a manageable size would be best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant