Skip to content

APNS device tokens variable length per Apple docs #537

@binary-sentient

Description

@binary-sentient

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions