使用Firebase实施推送通知的最佳方法 [英] Best way to implement push notifications with Firebase

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

问题描述

我是一名iPhone应用程序编码器,并且使用Firebase作为我的后端服务器。 Firebase不支持推送通知,所以我一直在试图弄清楚如何将它们包含在我的应用程序中。我读过这个问题:如何发送一个警告消息给一个特殊的在线用户与firebase ,但它似乎更像是一个解决方案而不是一个实际的解决方案。



如何做到这一点的答案?是否有第三方或API可能无缝地实现此功能?

我试过的一个解决方案是使用Zapier将Firebase连接到Pushover。



此时,我已经能够观察正在编码的应用程序中的事件,然后在iPhone上的推送应用程序中获取通知。不过,理想情况下,我想在我的应用程序中收到通知,而不是在推送应用程序中,因为我不希望用户需要pushover才能使用我的应用程序,因为我希望用户能够接收他们自己的独特通知,而不是每个人的通知。



有人对我应该如何处理这个问题有什么建议吗?帮助!

编辑
这个问题不是重复的: Firebase处理推送通知?,因为我知道Firebase不直接处理推送通知。我正在寻找处理Firebase推送通知的最佳间接方式。

现在Google将GCM重新标记为 Firebase Cloud Messaging ,现在它提供了这个跨平台服务。 Firebase还提供通知



这些是这两个服务之间的区别:

lockquote
Firebase Fire Messaging通过客户端SDK提供了一套完整的消息
功能, HTTP和XMPP服务器
协议。对于具有更复杂消息传递要求的部署,
FCM是正确的选择。

Firebase通知是基于Firebase Cloud构建的轻量级无服务器消息传递解决方案
消息。借助用户友好的图形
控制台和更低的编码要求,Firebase通知可让
用户轻松发送消息,重新定位和留住用户,促进应用程序
的增长,并支持市场营销活动。


如果您想要更详细的比较。阅读这个


I am an iPhone app coder, and I'm using Firebase as my backend server. Firebase doesn't support Push Notifications, so I've been trying to figure out how to include them in my app. I've read this question: How to send an alert message to a special online user with firebase but it seems like more of a work-around than an actual solution.

Is there an answer on how to do this? Are there third parties or APIs that might seemlessly implement this functionality?

One solution I have tried is to use Zapier to connect Firebase to Pushover.

At this point, I've been able to observe events in the app that I'm coding and then get notifications in a pushover app on my iphone. However, ideally, I'd like to receive the notifications in my app, not in the pushover app, because I don't want users to need to have pushover in order to use my app and because I want users to receive their own distinct notifications, not notifications for everyone.

Does anyone have suggestions on how I should handle this issue?

Thanks for the help!

EDIT This isn't a duplicate of this question: Does firebase handle push notifications? because I know Firebase doesn't directly handle push notifications. I'm looking for the best indirect way of handling push notifications with Firebase.

解决方案

Now Google rebranded GCM to Firebase Cloud Messaging and it now offers this cross platform service. Firebase also offers notifications.

These are the differences between these two services:

Firebase Cloud Messaging provides a complete set of messaging capabilities through its client SDKs and HTTP and XMPP server protocols. For deployments with more complex messaging requirements, FCM is the right choice.

Firebase Notifications is a lightweight, serverless messaging solution built on Firebase Cloud Messaging. With a user-friendly graphical console and reduced coding requirements, Firebase Notifications lets users easily send messages to reengage and retain users, foster app growth, and support marketing campaigns.

If you want a more detailed comparison. Read this.

这篇关于使用Firebase实施推送通知的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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