Closed frane closed 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}$/?
if record.device_token !~ /^[a-zA-Z0-9]{64}$/
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}$/
?