Several conditions must be met for a user to receive push notifications.
1. Push notifications must be enabled in the Dashboard.
2. APNs/GCM configurations must be added to the application from the Dashboard or the Platform API.
3. A push token must have been registered for the user. Push tokens are typically registered automatically by the client SDKs. You can check users' tokens from your Dashboard, under the Users tab.
4. A user must be offline - they must be disconnected from ALL devices.
To check whether a user is online or offline, use the SendBird Dashboard. Under the Users tab, each user has an indicator displaying their connection status. When a user is offline here, push notifications will be broadcasted.
One common mistake is for developers have an emulator open with an active connection to SendBird - push notifications will not be sent to any device in this case!
5. When your iOS app is receiving the push notifications while Android is not and you are able to successfully send push notifications from Android Firebase console, then please check to make sure to implement onMessageReceived method. More details found here athttps://docs.sendbird.com/android/push_notifications#3_step_5_handle_a_fcm_message_payload.
6. For iOS apps with iOS 13 using Xcode 11, please use the SDK version later than 3.0.150. For more details, please check this article.
See the documentation for further details.
- Android: https://docs.sendbird.com/android#push_notifications
- iOS: https://docs.sendbird.com/ios#push_notifications
If you have followed all of the steps above but find that the push notifications still aren't coming, please contact firstname.lastname@example.org.