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

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

问题描述

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

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:

由于我们不使用我们自己的服务器,我们是否需要第 3 方提供程序(例如 Batch)来处理推送通知?如果我没记错的话,我认为 Firebase 不支持发送这样的推送通知,而只支持您从控制台发送的通知.

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.

任何帮助都会很棒.

推荐答案

希望有人觉得这很有用,它对我有帮助.

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

目前,Firebase 提供的解决方案无法在设备之间发送推送通知.如果您想要那种类型的东西,您应该尝试 OneSignal,它是免费且易于实施的.

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天全站免登陆