Class: Aws::Pinpoint::Types::DefaultPushNotificationMessage

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-pinpoint/types.rb

Overview

Note:

When making an API call, you may pass DefaultPushNotificationMessage data as a hash:

{
  action: "OPEN_APP", # accepts OPEN_APP, DEEP_LINK, URL
  body: "__string",
  data: {
    "__string" => "__string",
  },
  silent_push: false,
  substitutions: {
    "__string" => ["__string"],
  },
  title: "__string",
  url: "__string",
}

Default Push Notification Message.

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app launches, or it becomes the foreground app if it has been sent to the background. This is the default action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a designated user interface within the app. URL - The default mobile browser on the user’s device launches and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URL

Returns:

  • (String)


2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
# File 'lib/aws-sdk-pinpoint/types.rb', line 2561

class DefaultPushNotificationMessage < Struct.new(
  :action,
  :body,
  :data,
  :silent_push,
  :substitutions,
  :title,
  :url)
  include Aws::Structure
end

#bodyString

The message body of the notification.

Returns:

  • (String)


2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
# File 'lib/aws-sdk-pinpoint/types.rb', line 2561

class DefaultPushNotificationMessage < Struct.new(
  :action,
  :body,
  :data,
  :silent_push,
  :substitutions,
  :title,
  :url)
  include Aws::Structure
end

#dataHash<String,String>

The data payload used for a silent push. This payload is added to the notifications’ data.pinpoint.jsonBody’ object

Returns:

  • (Hash<String,String>)


2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
# File 'lib/aws-sdk-pinpoint/types.rb', line 2561

class DefaultPushNotificationMessage < Struct.new(
  :action,
  :body,
  :data,
  :silent_push,
  :substitutions,
  :title,
  :url)
  include Aws::Structure
end

#silent_pushBoolean

Indicates if the message should display on the recipient’s device. You can use silent pushes for remote configuration or to deliver messages to in-app notification centers.

Returns:

  • (Boolean)


2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
# File 'lib/aws-sdk-pinpoint/types.rb', line 2561

class DefaultPushNotificationMessage < Struct.new(
  :action,
  :body,
  :data,
  :silent_push,
  :substitutions,
  :title,
  :url)
  include Aws::Structure
end

#substitutionsHash<String,Array<String>>

Default message substitutions. Can be overridden by individual address substitutions.

Returns:

  • (Hash<String,Array<String>>)


2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
# File 'lib/aws-sdk-pinpoint/types.rb', line 2561

class DefaultPushNotificationMessage < Struct.new(
  :action,
  :body,
  :data,
  :silent_push,
  :substitutions,
  :title,
  :url)
  include Aws::Structure
end

#titleString

The message title that displays above the message on the user’s device.

Returns:

  • (String)


2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
# File 'lib/aws-sdk-pinpoint/types.rb', line 2561

class DefaultPushNotificationMessage < Struct.new(
  :action,
  :body,
  :data,
  :silent_push,
  :substitutions,
  :title,
  :url)
  include Aws::Structure
end

#urlString

The URL to open in the user’s mobile browser. Used if the value for Action is URL.

Returns:

  • (String)


2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
# File 'lib/aws-sdk-pinpoint/types.rb', line 2561

class DefaultPushNotificationMessage < Struct.new(
  :action,
  :body,
  :data,
  :silent_push,
  :substitutions,
  :title,
  :url)
  include Aws::Structure
end