- 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.
- Configure QuickBlox SDK for your app. Check out our Setup page for more details.
- Create a user session to be able to use QuickBlox functionality. See our Authentication page to learn how to do it.
- 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.
Send notifications about new messages to the user when their app is not running by using offline messaging functionality. This functionality allows for customizing automatic push notifications displayed on a user's device when they are offline. In other words, if your opponent is offline when you are writing a message, they can automatically receive a push notification.
To become online you should log in to Chat (connect).
Offline messages are customized from the Dashboard. Just follow Dashboard => YOUR_APP => Chat => Offline messaging directory to locate offline messaging settings.
Make sure to subscribe your users to pushes using SDKs. Review Push Notifications section for more details.
You can send only FCM data messages 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.
Here you will find the following settings:
- Enable automatic push notifications for offline users - check it to receive push notifications from the server automatically.
- Offline messaging text - text of your push notification.
- Templates - set push notification template here. Use template variables to engage your push message.
- Badge counter - set badge counter to include counter info into your push message. Useful to include unread counter - the number of unread messages a user has.
- Sound - set push notification sound (for iOS only).
- Category - describes "actions" that should be presented in the app notification in various views (for iOS only).
- Content Available - enable it to indicate that new content is available (for iOS only).
- Mutable content - enable it to modify the content of newly delivered notifications before the user is alerted. Use a notification service app extension to be able to modify the content of the notification. If the option is enabled, the system passes the notification to the service app extension for the subsequent modification of the notification payload before the actual delivery (for iOS only).
Currently, push notifications are supported in the mobile environment only.
truewhen sending messages to apply offline pushes. Review this section for more details.
Updated 27 days ago