Android - Notification Channel Setup
Android 8 and later (API 26 and above) support notification channels. FlareLane offers a variety of options so you can make full use of notification channels.
(Optional) Use your own notification channel
Section titled “(Optional) Use your own notification channel”If no specific configuration is provided, the FlareLane SDK creates one default notification channel at initialization.
If your team already uses its own notification channel, you can configure FlareLane to use the existing channel as follows. When this value is defined, FlareLane does not create a separate notification channel. Note that if the channel does not exist, notifications may not be received.
<application> <meta-data android:name="flarelane_default_channel_id" android:value="YOUR_CHANNEL_ID" /><application/>Change the FlareLane notification channel name
Section titled “Change the FlareLane notification channel name”To change the name of the default notification channel created by FlareLane, configure it as follows.
<resources> <string name="flarelane_default_channel_name">All Notifications</string></resources>Set a notification channel per message
Section titled “Set a notification channel per message”If you want to use a different notification channel for individual messages, separate from the default channel, set the channel ID in the data field of the FlareLane message as follows.
{"data": { "flarelane_notification_channel_id": "YOUR_CHANNEL_ID"}}Set a notification ID per message
Section titled “Set a notification ID per message”By default, notifications sent from FlareLane have a unique notification ID, so each one appears as a new notification entry in the Android notification center.
If you want to reuse the same notification entry, set the notification ID in the data field of the FlareLane message as follows.
{"data": { "flarelane_notification_id": "123" }}