class Rpush::Client::ActiveModel::Apns::BinaryNotificationValidator
Constants
- MAX_BYTES
Public Instance Methods
validate(record)
click to toggle source
# File lib/rpush/client/active_model/apns/binary_notification_validator.rb, line 8 def validate(record) return unless record.payload.bytesize > MAX_BYTES record.errors[:base] << "APN notification cannot be larger than #{MAX_BYTES} bytes. Try condensing your alert and device attributes." end