Offline Messaging

Learn how to receive push notifications when the app is not running.

Before you begin

  1. Register a QuickBlox account. This is a matter of a few minutes and you will be able to use this account to build your apps.
  2. Configure QuickBlox SDK for your app. Check out our Setup page for more details.
  3. Create a user session to be able to use QuickBlox functionality. See our Authentication page to learn how to do it.
  4. Connect to the Chat server. See our Connection page to learn how to do it.

Visit our Key Concepts page to get an overall understanding of the most important QuickBlox concepts.

Enable offline messaging

When you send a chat message and the recipient(s) is offline, then an automatic push notification will be fired. To receive push notifications you need to subscribe for them. Please refer to Push Notifications guide.

To configure push template that users receive, go to Dashboard => YOUR_APP => Chat => Offline messaging.

🚧

FCM data messages can be sent to the Android app. QuickBlox doesn't support FCM notification messages.

To process FCM data messages on your app when the app is in the background, you need to handle them. If not handled, they will not pop on the screen even if the app has received such push notification. See FCM documentation to learn more about data messages.

🚧

Currently, push notifications are supported in a mobile environment only.


What’s Next