About notifications and conversations
Stay organized with collections
Save and categorize content based on your preferences.
Notifications provide timely, relevant updates from your app to the user
that appear in places such as the status bar, notification drawer, and the lock
screen. They inform users about relevant messages, updates, or events within
your app — particularly while your app isn't running in the foreground.
Conversations are notifications for real-time messaging with people that
get a dedicated prioritized section in the notification drawer. Conversations
support bubbles and share targets. They make your messaging app feel
well-integrated into the Android experience, enhance user engagement, and keep
your app top of mind.
Know key Android notification concepts
Using notifications effectively and correctly gives your app a great way to
re-engage your users, but there is a lot to know. Here are some of the basics:
- Notification Runtime Permission (POST_NOTIFICATIONS): Starting in
Android 13 (API level 33) and later, apps must request the
POST_NOTIFICATIONS permission to send notifications, giving users direct
control over which apps can send them notifications.
- Notification Channels: Apps are required to use channels to post
notifications, and channels have unique IDs and user-visible names. Users can
fine-tune notification settings per channel, so you should categorize your
notifications by type or priority in ways that users can understand (e.g.,
messages, alerts, updates).
- Notification Groups: Groups visually organize related notifications,
and allow users to manage them as a unit.
- Notification Badge: This small dot or number on an app's icon
(depending on launcher support) indicates unread notifications. (You can choose
to have your app provide a custom number instead).
- MessagingStyle: A notification style that is used to represent
conversations between different people or groups of people. Your notifications
must be created with this style to use Android's conversation features.
- Notification Actions: Buttons at the bottom of a notification that
perform an action on the data the notification represents, such as "Archive" or
"Reply." Notifications can even allow users to directly type replies.
See Notifications overview to learn about the basics of Android
Notifications.
See Best practices for messaging apps for a more detailed overview of
bringing your messaging app to the most Android surfaces.
See People and conversations to learn more about notifications and
conversations best practices and fundamental tools.
Level up your app
To help your messaging app meet and surpass user expectations and make your
app feel fully integrated with Android, you'll want to take full advantage
of the notification features Android has to offer:
The full guide has even more notification-related features to
consider to take your social and messaging experience to the next level.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-05-14 UTC.
[null,null,["Last updated 2024-05-14 UTC."],[],[],null,["# About notifications and conversations\n\n[Notifications](/develop/ui/views/notifications) provide timely, relevant updates from your app to the user\nthat appear in places such as the status bar, notification drawer, and the lock\nscreen. They inform users about relevant messages, updates, or events within\nyour app --- particularly while your app isn't running in the foreground.\n\n[Conversations](/develop/ui/views/notifications/conversations) are notifications for real-time messaging with people that\nget a dedicated prioritized section in the notification drawer. Conversations\nsupport [bubbles](/develop/ui/views/notifications/bubbles) and [share targets](/training/sharing/direct-share-targets). They make your messaging app feel\nwell-integrated into the Android experience, enhance user engagement, and keep\nyour app top of mind.\n\n### Know key Android notification concepts\n\nUsing notifications effectively and correctly gives your app a great way to\nre-engage your users, but there is a lot to know. Here are some of the basics:\n\n- [**Notification Runtime Permission**](/develop/ui/views/notifications/notification-permission) (**POST_NOTIFICATIONS** ): Starting in Android 13 (API level 33) and later, apps must request the [POST_NOTIFICATIONS](/reference/android/Manifest.permission#POST_NOTIFICATIONS) permission to send notifications, giving users direct control over which apps can send them notifications.\n- [**Notification Channels**](/develop/ui/views/notifications/channels): Apps are required to use channels to post notifications, and channels have unique IDs and user-visible names. Users can fine-tune notification settings per channel, so you should categorize your notifications by type or priority in ways that users can understand (e.g., messages, alerts, updates).\n- [**Notification Groups**](/develop/ui/views/notifications/group): Groups visually organize related notifications, and allow users to manage them as a unit.\n- [**Notification Badge**](/develop/ui/views/notifications/badges): This small dot or number on an app's icon (depending on launcher support) indicates unread notifications. (You can choose to have your app provide a custom number instead).\n- [**MessagingStyle**](/reference/android/app/Notification.MessagingStyle): A notification style that is used to represent conversations between different people or groups of people. Your notifications must be created with this style to use Android's [conversation features](/develop/ui/views/notifications/conversations).\n- [**Notification Actions**](/develop/ui/views/notifications#Actions): Buttons at the bottom of a notification that perform an action on the data the notification represents, such as \"Archive\" or \"Reply.\" Notifications can even allow users to directly type replies.\n\nSee [Notifications overview](/develop/ui/views/notifications) to learn about the basics of Android\nNotifications.\nSee [Best practices for messaging apps](/develop/ui/views/notifications/build-notification#messaging-best-practices) for a more detailed overview of\nbringing your messaging app to the most Android surfaces.\nSee [People and conversations](/develop/ui/views/notifications/conversations) to learn more about notifications and\nconversations best practices and fundamental tools.\n\n### Level up your app\n\nTo help your messaging app meet and surpass user expectations and make your\napp feel fully integrated with Android, you'll want to take full advantage\nof the notification features Android has to offer:\n\n- Support [conversation notifications](/develop/ui/views/notifications/conversations#api-notifications) with [long-lived shortcuts](/develop/ui/views/notifications/conversations#api-shortcuts) so users can add people and group shortcuts to their homescreens via widgets.\n- Support [notification badges](/develop/ui/views/notifications/badges) in the launcher.\n- Support [direct replies](/develop/ui/views/notifications/build-notification#direct-reply) so that users can respond to messages from within their notifications.\n- Enable [smart replies](/develop/ui/views/notifications/build-notification#smart-reply) for wearable devices to make it easier for users to communicate from their wrist.\n- Support [bubbles for conversations](/develop/ui/views/notifications/bubbles), so that people can keep conversations going easily while engaged with other tasks on their device.\n\nThe [full guide](/social-and-messaging/guides/communication/basic-better-best) has even more notification-related features to\nconsider to take your social and messaging experience to the next level."]]