You can add buttons called interactive notifications to push notifications in your mobile app. These notifications allow the mobile app user to take action directly from notifications, such as going to specific locations within the app or initiating a purchase.

You can view a working implementation of interactive notifications in the Android Learning App. View the code.

Here is an example of an interactive notification, which includes a reminder button that the user can tap:

The SDK uses a NotificationCompat.Builder to create the notification to display. A new class called ETNotifications will create the notification. This class contains an interface that allows you to override the functionality provided by the SDK. Set the notification builder override during SDK initialization. In order to override this functionality, call ETNotifications#setNotificationBuilder as shown in the following code: