amazonka-pinpoint-2.0: Amazon Pinpoint SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

Description

 
Synopsis

Documentation

data AndroidPushNotificationTemplate Source #

Specifies channel-specific content and settings for a message template that can be used in push notifications that are sent through the ADM (Amazon Device Messaging), Baidu (Baidu Cloud Push), or GCM (Firebase Cloud Messaging, formerly Google Cloud Messaging) channel.

See: newAndroidPushNotificationTemplate smart constructor.

Constructors

AndroidPushNotificationTemplate' 

Fields

  • action :: Maybe Action

    The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:

    • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
    • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
    • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
  • body :: Maybe Text

    The message body to use in a push notification that's based on the message template.

  • imageIconUrl :: Maybe Text

    The URL of the large icon image to display in the content view of a push notification that's based on the message template.

  • imageUrl :: Maybe Text

    The URL of an image to display in a push notification that's based on the message template.

  • rawContent :: Maybe Text

    The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.

  • smallImageIconUrl :: Maybe Text

    The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.

  • sound :: Maybe Text

    The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

  • title :: Maybe Text

    The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.

  • url :: Maybe Text

    The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.

Instances

Instances details
FromJSON AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

ToJSON AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

Generic AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

Associated Types

type Rep AndroidPushNotificationTemplate :: Type -> Type #

Read AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

Show AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

NFData AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

Eq AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

Hashable AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

type Rep AndroidPushNotificationTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.AndroidPushNotificationTemplate

newAndroidPushNotificationTemplate :: AndroidPushNotificationTemplate Source #

Create a value of AndroidPushNotificationTemplate with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:action:AndroidPushNotificationTemplate', androidPushNotificationTemplate_action - The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:

  • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
  • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
  • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

$sel:body:AndroidPushNotificationTemplate', androidPushNotificationTemplate_body - The message body to use in a push notification that's based on the message template.

$sel:imageIconUrl:AndroidPushNotificationTemplate', androidPushNotificationTemplate_imageIconUrl - The URL of the large icon image to display in the content view of a push notification that's based on the message template.

$sel:imageUrl:AndroidPushNotificationTemplate', androidPushNotificationTemplate_imageUrl - The URL of an image to display in a push notification that's based on the message template.

$sel:rawContent:AndroidPushNotificationTemplate', androidPushNotificationTemplate_rawContent - The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.

$sel:smallImageIconUrl:AndroidPushNotificationTemplate', androidPushNotificationTemplate_smallImageIconUrl - The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.

$sel:sound:AndroidPushNotificationTemplate', androidPushNotificationTemplate_sound - The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

$sel:title:AndroidPushNotificationTemplate', androidPushNotificationTemplate_title - The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.

$sel:url:AndroidPushNotificationTemplate', androidPushNotificationTemplate_url - The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.

androidPushNotificationTemplate_action :: Lens' AndroidPushNotificationTemplate (Maybe Action) Source #

The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:

  • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
  • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
  • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

androidPushNotificationTemplate_body :: Lens' AndroidPushNotificationTemplate (Maybe Text) Source #

The message body to use in a push notification that's based on the message template.

androidPushNotificationTemplate_imageIconUrl :: Lens' AndroidPushNotificationTemplate (Maybe Text) Source #

The URL of the large icon image to display in the content view of a push notification that's based on the message template.

androidPushNotificationTemplate_imageUrl :: Lens' AndroidPushNotificationTemplate (Maybe Text) Source #

The URL of an image to display in a push notification that's based on the message template.

androidPushNotificationTemplate_rawContent :: Lens' AndroidPushNotificationTemplate (Maybe Text) Source #

The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.

androidPushNotificationTemplate_smallImageIconUrl :: Lens' AndroidPushNotificationTemplate (Maybe Text) Source #

The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.

androidPushNotificationTemplate_sound :: Lens' AndroidPushNotificationTemplate (Maybe Text) Source #

The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

androidPushNotificationTemplate_title :: Lens' AndroidPushNotificationTemplate (Maybe Text) Source #

The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.

androidPushNotificationTemplate_url :: Lens' AndroidPushNotificationTemplate (Maybe Text) Source #

The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.