用户到用户推送通知 [英] user to user push notifications

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

问题描述

我在这里和网上看到很多关于这个话题的问题,但它们都是很久以前的,可能已经过时了.如果 Firebase 最近实现了任何能够实现用户对用户推送通知系统的功能,基本上是所有聊天应用程序中使用的功能,或者目前最好的选择是否仍在使用 Onesignal,我想得到一个更新的答案.

解决方案

是的!现在,您可以使用 Cloud Functions for Firebase 执行一些操作,例如在数据库方面发生有趣的事情时发送通知.

I have seen many questions on here and online that address this topic, but they all are from a long time ago, and are possibly outdated. I wanted to get a more recent answer if Firebase has implemented anything recently that is capable of a user to user push notification system, essentially what is used in all chat applications, or if the best option is still currently using Onesignal.

解决方案

Yes! These days, you can use Cloud Functions for Firebase to do things like send a notification when something interesting happens on the Database side of things.

Here's an example where a user gets notified via notifications when they gain a new follower. Obviously, your part of the database portion will probably change depending on what exactly you want to trigger a notification, but the general theory is the same.

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

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