Open binary-sentient opened 4 years ago
are you up for a PR with test?
Will be happy to as soon as I can get to it. Deadline bearing down on me. I'll have to fix it myself, but I haven't got to it yet.
Ping on this. Currently hitting trying to register a 161 char token
According to this developer document, apple device tokens can be variable in length:
"APNs device tokens are of variable length. Do not hard-code their size."
However, this line fails validation if the token is anything but 64 or 200 characters in length: https://github.com/jazzband/django-push-notifications/blob/master/push_notifications/api/rest_framework.py#L54