Sha256: affe53bced2b7bae97ed9dc8e559fa97a9ec99c68293e7e71f27db87b72fc7d6
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
module Rpush module Apns class BinaryNotificationValidator < ActiveModel::Validator def validate(record) if record.payload_size > 256 record.errors[:base] << "APN notification cannot be larger than 256 bytes. Try condensing your alert and device attributes." end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rpush-1.0.0-java | lib/rpush/apns/binary_notification_validator.rb |
rpush-1.0.0 | lib/rpush/apns/binary_notification_validator.rb |