How to write firebase cloud functions in java(如何用java编写firebase云函数)
问题描述
我是 firebase 的新手.我使用 admin sdk(java 代码)将数据存储在 firebase 数据库中.我已经成功地完成了这部分.现在我想在创建数据库条目和通知时编写火基云函数
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
是否可以编写firebase云功能使用 admin sdk 或 java 代码.请帮助我.
Is it possible to write firebase cloud function using admin sdk or java code.Please help me.
推荐答案
2020 年 5 月 30 日
Cloud Functions 现在支持 Java/JVM.请参阅发布博客 和文档 以获取信息.
There is now support for Java/JVM in Cloud Functions. Please see the release blog and documentation for information.
原答案
对于 Cloud Functions,目前在 node.js 环境中不支持 Java 或除 JavaScript 之外的任何其他语言或环境.
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云函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何用java编写firebase云函数


基础教程推荐
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 存储 20 位数字的数据类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01