v7

Create notifications for Android

Last update: 2023-12-15
  • Topics:
  • Push
    View more on this topic
  • Created for:
  • User
    Developer

Use Adobe Campaign to send push notifications on Android devices. Global concepts on delivery creation are presented in this section.

Start by creating a new delivery.

With Firebase Cloud Messaging, you can choose between two types of messages:

  • Data message, handled by the client app.

    Messages are sent directly to the mobile application which will generate and display the android notification to the device. Data messages contain only your custom application variables.

  • Notification message, handled automatically by the FCM SDK.

    FCM automatically displays the message on your users’ devices on behalf of the client app. Notification messages contain a predefined set of parameters and options but can still be further personalized with custom application variables.

For more information on Firebase Cloud Messaging messages types, refer to FCM documentation.

Create a data message

  1. Go to Campaign management > Deliveries.

  2. Click New.

  3. Select Deliver on Android (android) in the Delivery template drop-down. Add a Label to your delivery.

  4. Click To to define the population to target. By default, the Subscriber application target mapping is applied. Click Add to select your service.

  5. In the Target type window, select Subscribers of an Android mobile application and click Next.

  6. In the Service drop-down, select your previously created service then application and click Finish.
    The Application variables are automatically added depending on what was added during the configuration steps.

  7. Select data message as Message Type.

  8. Edit your rich notification.

  9. You can add information in your previously configured Application variables if needed. Application variables needs to be configured in the Android service and are a part of the message payload sent to the mobile device.

  10. Click Save and send your delivery.

The image and web page should be displayed in the push notification when received on the subscribers’ mobile Android devices.

Create a notification message

Learn how to create an Android push notification in video.

  1. Go to Campaign management > Deliveries.

  2. Click New.

  3. Select Deliver on Android (android) in the Delivery template drop-down. Add a Label to your delivery.

  4. Click To to define the population to target. By default, the Subscriber application target mapping is applied. Click Add to select your service.

  5. In the Target type window, select Subscribers of an Android mobile application and click Next.

  6. In the Service drop-down, select your previously created service then application and click Finish.

  7. Select notification message as Message Type.

  8. Add a title and edit your message. Personalize your push notification with the Notification options:

    • Channel ID: Set your notification’s channel ID. The app must create a channel with this channel ID before any notification with this channel ID is received.
    • Sound: Set the sound to play when the device receives your notification.
    • Color: Set your notification’s icon color.
    • Icon: Set the notification’s icon to display on your profiles’ devices.
    • Tag: Set the identifier used to replace existing notifications in the notification drawer.
    • Click action: Set the action associated with a user click on your notification.

    For more on the Notification options and how to fill these fields, refer to FCM documentation.

  9. If your application is configured with HTTP v1 API protocol, you can further personalize your push notification with the following HTTPV1 additional options:

    • Ticker: Set the ticker text of your notification. Only available for devices set to Android 5.0 Lollipop.
    • Image: Set the image’s URL to be displayed in your notification.
    • Notification Count: Set the number of new unread information to display directly on the application icon.
    • Sticky: Set to true or false. If set to false, the notification is automatically dismissed when the user clicks it. If set to true, the notification is still displayed even when the user clicks it.
    • Notification Priority: Set the priority levels of your notification to default, minimum, low or high. For more on this, refer to FCM documentation.
    • Visibility: Set the visibility levels of your notification to public, private or secret. For more on this, refer to FCM documentation.

    For more on the HTTP v1 additional options and how to fill these fields, refer to FCM documentation.

  10. You can add information in your previously configured Application variables if needed. Application variables needs to be configured in the Android service and are a part of the message payload sent to the mobile device.

  11. Click Save and send your delivery.

The image and web page should be displayed in the push notification when received on the subscribers’ mobile Android devices.

On this page