[英]Onesignal vs GCM(FCM)
I use FCM in my social messaging app.我在我的社交消息应用程序中使用 FCM。 Sometimes FCM messages can not be delivered from the server to client.
有时 FCM 消息无法从服务器传递到客户端。
Is there any benefit to using OneSignal when I've got to do the full FCM setup as well in server and client sides?当我必须在服务器端和客户端进行完整的 FCM 设置时,使用 OneSignal 有什么好处吗?
I reviewed OneSignal documents this link: https://documentation.onesignal.com/docs/product-overview but I could not understand which was more useful.我查看了 OneSignal 文档此链接: https ://documentation.onesignal.com/docs/product-overview 但我不明白哪个更有用。
I help work on OneSignal.我帮助 OneSignal 工作。 Here are some reasons that OneSignal could be useful in this case.
以下是 OneSignal 在这种情况下可能有用的一些原因。
FCM has two types of messages.Notification message which deliver in most cases, and data message which doesn't sometimes. FCM 有两种类型的消息。大多数情况下传递的通知消息和有时不传递的数据消息。 A possible solution is to set priority of data message to HIGH while sending from server side.
一种可能的解决方案是在从服务器端发送时将数据消息的优先级设置为高。 https://firebase.google.com/docs/cloud-messaging/concept-options
https://firebase.google.com/docs/cloud-messaging/concept-options
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.