class Grocer::MobileDeviceManagementNotification
Public: A specialized form of a Grocer::Notification
which only requires a `push_magic` and `device_token` to be present in the payload.
Examples
Grocer::MobileDeviceManagementNotification.new(device_token: '...', push_magic: '...')
Attributes
push_magic[RW]
Private Instance Methods
payload_hash()
click to toggle source
# File lib/grocer/mobile_device_management_notification.rb, line 15 def payload_hash { mdm: push_magic } end
validate_payload()
click to toggle source
# File lib/grocer/mobile_device_management_notification.rb, line 19 def validate_payload fail NoPayloadError unless push_magic fail InvalidFormatError if alert || badge || custom fail PayloadTooLargeError if payload_too_large? end