class Grocer::NewsstandNotification
Public: A specialized form of a Grocer::Notification
which requires neither an alert nor badge to be present in the payload. It requires only the `device_token` to be set.
Examples
Grocer::NewsstandNotification.new(device_token: '...') #=> { aps: { 'content-available' => 1 } }
Public Class Methods
new(payload = {})
click to toggle source
Calls superclass method
# File lib/grocer/newsstand_notification.rb, line 14 def initialize(payload = {}) super(payload.merge(content_available: true)) end
Private Instance Methods
validate_payload()
click to toggle source
# File lib/grocer/newsstand_notification.rb, line 20 def validate_payload true end