Learn how to receive push notifications when the app is not running.
Before you begin
- 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.
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.
Updated over 1 year ago