Skip to content

Android - Notification Icon Setup

If you operate an Android app, you can change the notification icon. No extra code is required to change the icon. As long as you name the resource according to the convention when creating the icon, the FlareLane SDK automatically recognizes the notification icon.

In this guide, we'll create the icon using Android Studio.

Once you open a valid Android project, it will be recognized as one, as shown below.

Android Studio project structure view showing an Android project

Right-click the root project, then select New -> Image Asset.

Android Studio context menu with New and Image Asset options highlighted

a. Select 'Notification Icons' for Icon Type

b. Enter ic_stat_flarelane_default for Name (Important!)

c. Select 'Image' for Asset Type, then attach the icon image you want to use

Android Studio Image Asset dialog with Notification Icons type and ic_stat_flarelane_default name

If the icon was created correctly, rebuild the app and send a push notification. You should see the icon displayed correctly with the new image.

Android push notification displaying the custom FlareLane notification icon