Apple push notification or firebase push notifications? [closed]
Asked Answered
P

4

8

I just want to know that i used fireabase in my project. Can anyone please guide me which is good for push notifications? Firebase or Apple Push notification. and I also want some genuine reasons which one is better for User.

Pydna answered 1/3, 2017 at 7:44 Comment(1)
Your question is primarily opinionated. You need to make your question specific. Define "good for notifications".Bobby
F
17

Firebase Cloud Messaging is originally a platform to send notification for Android. They added an iOS SDK, but using their SDK on iOS means that you are using both FCM and Apple Push notification service:

Push for iOS device => Firebase Cloud Messaging => Apple APNS => Device

If you are only developing an iOS app, it is best to use APNS directly. If you already have all your infrastructure set up for FCM, then you may save you a bit of code by supporting only FCM to address both iOS and Android.

However there is no specific technical benefit doing so.

Frecklefaced answered 1/3, 2017 at 8:24 Comment(1)
There is practical benefit: using only one method is less work than two separate methods for Android / iOSMainis
R
14

Some of FCM advantages are

  1. Even if user disallow notification you can have notification for your app, if app is running in foreground (using shouldEstablishDirectChannel).

  2. Don't need to create dashboard to send notification on device.

  3. Notification analytics on FCM Dashboard.

  4. Easy to create notification payload structure.

  5. App Server side handling is easy, Only one key is required for multiple apps and platform (iOS,Android,Web)

Rachmaninoff answered 1/3, 2017 at 7:48 Comment(3)
please accept and upvote answer, if it was your answer, let me know if anything else you need to knowRachmaninoff
Can you please tell me why apple push notification is better than firebase. Please give me some strong and valid reasons.Pydna
one of them is, point number 1). even if user disallow notification your app can have notification in foreground, second Notification analytics you can have on FCM dashboardRachmaninoff
F
1

The maximum notification payload allowed through APNs is 4 KB in iOS 8 and above. It was only 256 bytes operating systems prior to iOS 8. Keep in mind that the notification payload is the sum of notification size and device token.

Through FCM, it is also possible to send messages apart from notifications. FCM describes two different payload sizes for different functions. The maximum notification payload size allowed is 2 KB which is lowest when comparing FCM with APNs and WNS. The maximum message payload size is 4 KB.

WNS is the one that allows highest notification payload among the three, and that is 5 KB.

Flock answered 1/3, 2017 at 8:7 Comment(0)
D
-2

APNS is much more better in my experience. They have much more success and it's easier. I guess it works better as it's Apple's service.

Denitrify answered 1/3, 2017 at 7:52 Comment(3)
If I use Firebase to send notifications, do I need some additional Google libraries in my iOS app or does the operating system display them the same way even if they are sent from FCM? And clicking them launches the app (if on background)? Why do I need to do this: firebase.google.com/docs/cloud-messaging/ios/…Motorboat
As FCM uses FCM token you will need to add Firebase lib. to get the FCM token.And for retrieve data and etc with Lib would be much easier.Denitrify
Thanks, just learned that as well. Firebase seems to be doing a lot of statistics collecting (similar stuff Mixpanel and FB Pixel do), so this seems like Google's plan trying to fetch all possible information from the Internet. I do not want to support this, nor I want to install extra library to make my client larger.Motorboat

© 2022 - 2024 — McMap. All rights reserved.