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

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

问题描述

我只想知道我在项目中使用了fireabase.谁能指导我哪些内容适合推送通知?Firebase或Apple Push通知.而且我还希望有一些真正的理由,哪个对用户更好.

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 Push通知服务:

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.

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

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