Apple 推送通知或 firebase 推送通知? [英] Apple push notification or firebase push notifications?

查看:45
本文介绍了Apple 推送通知或 firebase 推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想知道我在我的项目中使用了 fireabase.任何人都可以指导我哪个适合推送通知?Firebase 或 Apple 推送通知.并且我还想要一些真实的原因,哪个更适合用户.

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.

推荐答案

Firebase Cloud Messaging 最初是一个为 Android 发送通知的平台.他们添加了一个 iOS SDK,但在 iOS 上使用他们的 SDK 意味着您同时使用 FCM 和 Apple 推送通知服务:

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:

推送 iOS 设备 => Firebase Cloud Messaging => Apple APNS => 设备

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

如果你只是开发iOS应用,最好直接使用APNS.如果您已经为 FCM 设置了所有基础架构,那么您可以通过仅支持 FCM 来同时处理 iOS 和 Android 来节省一些代码.

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.

这篇关于Apple 推送通知或 firebase 推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆