IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released KTX modules, we recommend that you
migrate your app to use KTX APIs from the main modules instead. For details, see the
FAQ about this initiative.
Stay organized with collections
Save and categorize content based on your preferences.
com.google.firebase.messaging
Contains public API classes for Firebase Cloud Messaging.
Annotations
Classes
Exceptions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.
[null,null,["Last updated 2025-07-21 UTC."],[],[],null,["# com.google.firebase.messaging\n=============================\n\nContains public API classes for Firebase Cloud Messaging.\n\nAnnotations\n-----------\n\n|----------------------------------------------------------------------------------------------------------------------|-------------------------|\n| [RemoteMessage.MessagePriority](/docs/reference/android/com/google/firebase/messaging/RemoteMessage.MessagePriority) | Priority of the message |\n\nClasses\n-------\n\n|----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FirebaseMessaging](/docs/reference/android/com/google/firebase/messaging/FirebaseMessaging) | Top level [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/) singleton that provides methods for generating tokens and subscribing to topics. |\n| [FirebaseMessagingService](/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService) | Base class for receiving messages from Firebase Cloud Messaging. |\n| [MessagingKt](/docs/reference/android/com/google/firebase/messaging/MessagingKt) | |\n| [RemoteMessage](/docs/reference/android/com/google/firebase/messaging/RemoteMessage) | A remote Firebase Message. |\n| [RemoteMessage.Builder](/docs/reference/android/com/google/firebase/messaging/RemoteMessage.Builder) | Builder object for constructing [RemoteMessage](/docs/reference/android/com/google/firebase/messaging/RemoteMessage) instances. |\n| [RemoteMessage.Notification](/docs/reference/android/com/google/firebase/messaging/RemoteMessage.Notification) | Remote Firebase notification details. |\n\nExceptions\n----------\n\n|--------------------------------------------------------------------------------------|----------------------------------|\n| [SendException](/docs/reference/android/com/google/firebase/messaging/SendException) | Firebase message send exception. |"]]