ileitch / rapns

MOVED TO https://github.com/rpush/rpush
MIT License
289 stars 92 forks source link

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

Closed frane closed 11 years ago

frane commented 11 years ago

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}$/?