# Rich Push Notifications Improved

DevFeed: [Rich Push Notifications Improved](<https://devfeed.tech/articles/rich-push-notifications-improved-19496.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/rich-push-notification-improved/>)

Author: Shai Almog

Published: 2019-02-04T00:00:00Z

Content type: release

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [push-notification](<https://devfeed.tech/topics/push-notification.md>), [Android](<https://devfeed.tech/topics/android.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [callback](<https://devfeed.tech/tags/callback.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [push-notification](<https://devfeed.tech/tags/push-notification.md>)

## AI overview

Codename One adds replies to rich push messages. Developers can define push categories and actions, including an action that provides a text input field, then retrieve the selected action and entered text through the push callback.

## Source excerpt

Last week Steve committed the final piece of the rich push notification support RFE. This commit introduces support for replies in push messages. This came too late for the whatsapp clone but if you want to build an app of this type you would need this feature. The app main class should implement PushActionProvider. This defines a method that returns a set of categories. E.g. public PushActionCategory[] getPushActionCategories() { return new PushActionCategory[]{ new PushActionCategory("fo", new PushAction[]{ new PushAction("yes", "Yes"), new PushAction("no", "No"), new PushAction("maybe", "Maybe", null, "Enter reason", "Reply") }) }; } Then, when sending a push notification, you can specify the "category" of the message. If the category corresponds with a defined category in your getPushActionCategories() method, then the user will be presented with a set of buttons corresponding to the PushActions in that category.