Firebase聊天推送通知 [英] Firebase chat Push Notifications

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

问题描述

我正在开发一个使用Firebase作为后端的聊天应用程序。
要求在每一个新的消息接收者得到一个推送通知,说他得到了一个新的消息。这是我第一次做这样的事情,所以我有一个问题:

因为我们不使用我们自己的服务器,我们需要第三方提供商像批处理例如)处理推送通知?如果我没有弄错,我想Firebase不支持发送这样的推送通知,但只有您从控制台发送的通知。



任何帮助都会很棒。 b $ b

解决方案

希望有人发现这个有用的,它在我的情况帮助。



从设备到设备的通知不能通过Firebase提供的解决方案实现。如果你想要这种类型的东西,你应该尝试 OneSignal 这是免费的,很容易实现。


I am developing a chat app using Firebase as backend. It is required that on every new message receiver gets a push notification saying that he got a new message. This is first time I am doing something like this so I have a question:

Since we do not use our own server for this, do we need a 3rd party provider (like Batch for example) for handling push notifications? If I am not mistaken I think Firebase does not support sending push notifications like this but only ones you send from console.

Any help would be great.

解决方案

Hope someone finds this useful, it helped in my case.

Currently sending push notifications from device to device isn't possible with solution Firebase offers. If you want that type of thing, you should try OneSignal which is free and very easy to implement.

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

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