class ActionPush::Ios::Message
Attributes
- 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.
- String
-
Provide this key with a string value that represents the notification’s type. This value corresponds to the value in the identifier
- 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
- 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
- String
-
Provide this key with a string value that represents the app-specific identifier for grouping notifications
Public Instance Methods
# File lib/action_push/ios/message.rb, line 42 def alert @alert ||= Alert.new block_given? ? yield(@alert) : @alert end
# 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
# File lib/action_push/ios/message.rb, line 59 def body alert.body end
# File lib/action_push/ios/message.rb, line 51 def body=(value) alert.body = value end
# File lib/action_push/ios/message.rb, line 55 def title alert.title end
# File lib/action_push/ios/message.rb, line 47 def title=(value) alert.title = value end