The very basic requirements to send Push Notifications successfully.
There are several steps to perform to enable Push Notification service properly:
1. Enabling "Chat Alerts" in the QuickBlox Admin Panel using this guide: https://docs.quickblox.com/docs/react-native-chat-advanced#section-alerts
2. APNS & GCM/FCM Certificates should be valid and uploaded in QuickBlox Admin Panel:
iOS guideline: https://docs.quickblox.com/docs/ios-push-notifications#section-create-apns-certificate
Android guideline: https://docs.quickblox.com/docs/android-push-notifications#section-configure-firebase-project-and-api-key
3. Push Notification Subscription.
Subscribe users to push notifications:
iOS guideline: https://docs.quickblox.com/docs/ios-push-notifications#section-subscribe
Android guideline: https://docs.quickblox.com/docs/android-push-notifications#section-automatic-push-subscription
Please notice that Push notifications can only be delivered from the Development environment to Development and from Production to Production.
4. Managing Background Mode properly. Ensure you manage users' Background mode properly because automatic Chat Alerts for Offline users require that a recipient is explicitly Offline:
Refer to the Chat in Background mode documentation and proper Logout logic on iOS:
https://docs.quickblox.com/docs/ios-chat#section-chat-in-background
https://docs.quickblox.com/docs/ios-chat#section-disconnect-from-chat-server
Refer to the Chat in Background mode documentation and proper Logout logic on Android:
https://docs.quickblox.com/docs/android-chat#chat-in-background
https://docs.quickblox.com/docs/android-chat#disconnect-from-chat-server
Keep in mind that managing and configuring push notifications in the background mode or killed state is not a part of QuickBlox SDK's and the implementation is up to the client side.
Maksym Pidhorbunskyi
Comments