Hi All,
I have been trying to create the custom interactive notification, I have given the below code after UAirship.takeoff
// Define actions for the group
NotificationActionButton hiButtonAction = new NotificationActionButton.Builder("PAY_CATEGORY")
.setLabel(R.string.pay_category)
.setIcon(R.drawable.your_icon_file)
.setPerformsInForeground(true)
.build();
NotificationActionButton byeButtonAction = new NotificationActionButton.Builder("bye")
.setLabel(R.string.bye)
.setIcon(R.drawable.your_icon_file)
.setPerformsInForeground(true)
.build();
// Define the group
NotificationActionButtonGroup buttonGroup = new NotificationActionButtonGroup.Builder()
.addNotificationActionButton(hiButtonAction)
.addNotificationActionButton(byeButtonAction)
.build();
// Add the custom group
airship.getPushManager().addNotificationActionButtonGroup("custom group", buttonGroup);
But i am not able to get any interactive buttons, i am able to get only notification
The server side i have been sending following format
Comments
6 comments