Create the icon
- In Android Studio, right-click the app module’s
resfolder and select New > Image Asset. - Set Icon Type to Notification Icons. Enter
ic_stat_notifly_defaultin Name. - Select your image and check the preview. Use a white silhouette on a transparent background.
- Click Next, then Finish. Android Studio creates the resource under
src/main/res/drawable-*.
Add the resource to your project
- Android
- Flutter
- React Native
Use
app/src/main/res/drawable-*. If your app module has a different name, use that module’s src/main/res directory.Test the icon
Rebuild and install the Android app. Send a test push notification from Notifly to check the icon. The SDK looks foric_stat_notifly_default in the drawable resources. If it cannot find that resource, it uses the app launcher icon. If the launcher icon is also unavailable, it uses the SDK’s default icon.
Notifications displayed by the Notifly SDK use the drawable resource described here. FCM’s
com.google.firebase.messaging.default_notification_icon manifest setting applies to FCM-managed notifications.