我正在我的 iOS 和 Android 应用程序中实现聊天功能,并希望设置推送通知。
如何为 iOS 和 Android 设备实现推送通知?
根据帮助中心:有两种方法可以为您的应用程序实现推送通知:
SendBird 通过 FCM(Firebase Cloud Messaging,以前的 Google Cloud Messaging)和 APNs(Apple Push Notification Service)支持 iOS 和 Android 推送通知。
请参考以下指南:
安卓:https ://docs.sendbird.com/android#push_notifications iOS:https ://docs.sendbird.com/ios#push_notifications
如果你想实现自己的自定义推送通知,你应该使用 Webhooks。可以从设置 - 通知 - Webhook 下的 SendBird 仪表板启用 Webhook。
每当在通道中发送消息时,都会调用您指定的回调 URL。
请参考以下文档: