Device token reported as invalid when characters are written in capital letters #166

Closed
frane opened this Issue Sep 17, 2013 · 0 comments

Projects

None yet

1 participant

frane commented Sep 17, 2013

Not sure if this is intentional or not. My device tokens are stored capitalized, i.e. like "ABB99CD456A...". So far they have always worked with APNS.

Maybe
https://github.com/ileitch/rapns/blob/master/lib/rapns/apns/device_token_format_validator.rb#L6 should be changed to if record.device_token !~ /^[a-zA-Z0-9]{64}$/?

@ileitch ileitch closed this in a745e21 Nov 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment