Skip to content

Additional Configuration

Configure Push Icon

SendMan aims to fit as smoothly as possible into your native app experience, and therefore allows you to set the default push notification icon for notifications received by your end users.
This icon needs to conform to the Android specifications as listed in the table below.

Tip

An easy and standard way to create your icons is by using Android Asset Studio , a very common open-source web application for creating icons for Android apps.

Once you have created the icon, there are two ways to set the icon within your app:

  1. Name your icon ic_default_small_sendman_notification and place it within your res folder so that our SDK will automatically use it.
    The locations for a module named app should be:

    File Path Icon Size
    app/src/main/res/drawable-mdpi/ic_default_small_sendman_notification.png 24x24
    app/src/main/res/drawable-hdpi/ic_default_small_sendman_notification.png 36x36
    app/src/main/res/drawable-xhdpi/ic_default_small_sendman_notification.png 48x48
    app/src/main/res/drawable-xxhdpi/ic_default_small_sendman_notification.png 72x72
    app/src/main/res/drawable-xxxhdpi/ic_default_small_sendman_notification.png 96x96
  2. Give your icon any name you want, and make sure it resides within the correct paths, as mentioned above. Add the extra smallIconFilename parameter to the SDK configuration:

    SendMan.setAppConfig(SendManConfig(appKey, appSecret, "ic_your_custom_notification"))
    
    SendMan.setAppConfig(new SendManConfig(appKey, appSecret, "ic_your_custom_notification"));
    

Info

If you do not set the icon as mentioned above, Android's default reminder icon will be displayed instead.

Report Custom Properties

SendMan supports setting custom properties for your users in the following way:

SendMan.setUserProperties(mapOf("some property" to "value", "a numeric property" to 2, "a boolean property" to true))
HashMap<String, ?> userProperties = new HashMap<>();
userProperties.put("some property", "value");
userProperties.put("a numeric property", 2);
userProperties.put("a boolean property", true);
SendMan.setUserProperties(userProperties);

This is useful for filtering users before sending a group notification.
SendMan also supports notification params, which can be filled dynamically for each user, with the value of these custom properties.