handleNotificationGroup
Internal method that handles notification group open events.
This is a final method called by the SDK when a user taps on a grouped notification (notification stack). On Android, multiple notifications from your app can be grouped together in a single expandable notification.
By default, this method delegates to onMessagesGroupOpened, which opens the most recent notification. You can override onMessagesGroupOpened to customize group open behavior. Example:
protected void onMessagesGroupOpened(List<PushMessage> messages) {
// Show summary screen with all messages
Intent intent = new Intent(getApplicationContext(), NotificationListActivity.class);
intent.putExtra("message_count", messages.size());
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplicationContext().startActivity(intent);
}
Content copied to clipboard
Parameters
messages
list of push messages in the group that was opened