简体   繁体   English

Onesignal 与 GCM(FCM)

[英]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 在这种情况下可能有用的一些原因。

  • OneSignal provides a single API and management interface for APNS (iOS notifications) and FCM (Android notifications). OneSignal 为 APNS(iOS 通知)和 FCM(Android 通知)提供单一 API 和管理界面。
  • OneSignal tracks notification click-rate for individual messages and campaigns. OneSignal 跟踪单个消息和活动的通知点击率。
  • OneSignal provides an SDK that takes care of reliably displaying messages that are received, restoring messages after an app update (on Android), and making it easy to customize notification categories, sounds, LED color, and Lockscreen visibility. OneSignal 提供了一个 SDK,它负责可靠地显示收到的消息、在应用更新后恢复消息(在 Android 上),并使自定义通知类别、声音、LED 颜色和锁屏可见性变得容易。
  • OneSignal stays up to date with any changes made to the operating system or notification APIs so you get access to the latest platform features without any additional engineering work. OneSignal 会随时了解对操作系统或通知 API 所做的任何更改,因此您无需任何额外的工程工作即可访问最新的平台功能。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM