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.
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:
Name your icon
ic_default_small_sendman_notificationand place it within your
resfolder so that our SDK will automatically use it.
The locations for a module named
File Path Icon Size
Give your icon any name you want, and make sure it resides within the correct paths, as mentioned above. Add the extra
smallIconFilenameparameter to the SDK configuration:
SendMan.setAppConfig(SendManConfig(appKey, appSecret, "ic_your_custom_notification"))
SendMan.setAppConfig(new SendManConfig(appKey, appSecret, "ic_your_custom_notification"));
InfoIf 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.