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.
问题:
回答1:
Some of 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)
回答2:
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.
回答3:
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.
回答4:
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.