Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Onesignal vs GCM(FCM)

I use FCM in my social messaging app. Sometimes FCM messages can not be delivered from the server to client.

Is there any benefit to using OneSignal when I've got to do the full FCM setup as well in server and client sides?

I reviewed OneSignal documents this link: https://documentation.onesignal.com/docs/product-overview but I could not understand which was more useful.

like image 933
propoLis Avatar asked Jan 03 '18 09:01

propoLis


People also ask

What is difference between GCM and FCM?

FCM is a cloud platform that provides messages and push notifications for operating systems- ios and Android, and websites as well. Google Cloud Messaging is a messaging service that enables the message transfer from server to clients apps.

Is GCM deprecated?

On April 10, 2018, Google deprecated GCM. The GCM server and client APIs were removed on May 29, 2019, and currently any calls to those APIs can be expected to fail. Google Cloud Messaging, deprecated April 10 2018, has been deactivated and removed from Google's APIs.

Does OneSignal use Firebase?

All applications on the Android Google Play Store must use the Firebase API to deliver notifications (FCM). OneSignal too leverages the FCM API due to this requirement. However, we make sure to use only the most reliable parts of the API.

Is FCM deprecated?

Starting March 22, 2020, the versions 81 and 82 of chrome disallow the creation of any new subscriptions using FCM sender IDs. However, the versions 78,79 and 80 of chrome will still allow the FCM Sender IDs that were used before September 2019. All the other FCM Sender IDs will be rejected.


2 Answers

FCM has two types of messages.Notification message which deliver in most cases, and data message which doesn't sometimes. 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

like image 104
Pramod Moolekandathil Avatar answered Oct 18 '22 05:10

Pramod Moolekandathil


I help work on OneSignal. Here are some reasons that OneSignal could be useful in this case.

  • OneSignal provides a single API and management interface for APNS (iOS notifications) and FCM (Android notifications).
  • OneSignal tracks notification click-rate for individual messages and campaigns.
  • 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 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.
like image 24
Gdeglin Avatar answered Oct 18 '22 05:10

Gdeglin