如何在java中编写firebase云函数 [英] How to write firebase cloud functions in java

查看:116
本文介绍了如何在java中编写firebase云函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是firebase的新手。我使用admin sdk(java代码)将数据存储在firebase数据库中。我成功完成了这部分。现在我想在创建数据库条目和通知时写入fire base cloud函数

I am new in firebase . I am store data in firebase database using admin sdk(java code ). I have done this part successfully . Now i want write fire base cloud function on create of database entry and notification as

1. The function triggers on writes to the Realtime Database path where followers are stored.
2. The function composes a message to send via FCM.
3. FCM sends the notification message to the user's device.

因为我在互联网上搜索更多,所以只找到了node.js代码。

As i have search more on internet , found only node.js code for that.

https:// firebase .google.com / docs / functions / get-started

是否可以使用admin sdk或java代码编写firebase云功能
。请帮助我。

Is it possible to write firebase cloud function using admin sdk or java code.Please help me.

推荐答案

对于云功能,目前不支持Java或除JavaScript以外的任何其他语言或环境node.js环境。

For Cloud Functions, there is currently no support for Java or any other languages or environments other than JavaScript in a node.js environment.

这篇关于如何在java中编写firebase云函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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