summaryNotificationIconResId

Returns the small icon resource ID for the summary notification.

The small icon appears in the status bar and in the notification itself. It should be a simple, recognizable symbol that represents your app or the grouped notifications.

Icon Requirements:

  • Must be a drawable resource from your app
  • Should be a white icon on transparent background
  • Recommended size: 24x24 dp
  • Best as vector drawable for all screen densities
Example - Use custom stack icon:

  
  public int summaryNotificationIconResId() {
      return R.drawable.ic_notification_stack;
  }
Example - Use default app icon:

  
  public int summaryNotificationIconResId() {
      return -1; // Uses same icon as individual notifications
  }

Return

Drawable resource ID for the summary notification icon, or -1 to use the default notification icon configured for the app