class ActionPush::Ios::Message

@refs developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html#//apple_ref/doc/uid/TP40008194-CH17-SW5

Attributes

badge[RW]
Integer

Include this key when you want the system to modify the badge of your app icon. If this key is not included in the dictionary, the badge is not changed. To remove the badge, set the value of this key to 0.

category[RW]
String

Provide this key with a string value that represents the notification’s type. This value corresponds to the value in the identifier

content_available[RW]
Integer

Include this key with a value of 1 to configure a background update notification. When this key is present, the system wakes up your app in the background and delivers the notification to its app delegate

sound[RW]
String

Include this key when you want the system to play a sound. The value of this key is the name of a sound file in your app’s main bundle or in the Library/Sounds

thread_id[RW]
String

Provide this key with a string value that represents the app-specific identifier for grouping notifications

Public Instance Methods

alert() { |alert| ... } click to toggle source
# File lib/action_push/ios/message.rb, line 42
def alert
  @alert ||= Alert.new
  block_given? ? yield(@alert) : @alert
end
alert=(alert) click to toggle source
# File lib/action_push/ios/message.rb, line 34
def alert=(alert)
  unless alert.is_a?(Alert)
    raise ArgumentError, "alert should be an instance of #{Alert}, got: <#{alert.class}>"
  end

  @alert = alert
end
body() click to toggle source
# File lib/action_push/ios/message.rb, line 59
def body
  alert.body
end
body=(value) click to toggle source
# File lib/action_push/ios/message.rb, line 51
def body=(value)
  alert.body = value
end
title() click to toggle source
# File lib/action_push/ios/message.rb, line 55
def title
  alert.title
end
title=(value) click to toggle source
# File lib/action_push/ios/message.rb, line 47
def title=(value)
  alert.title = value
end