我用火柴的前额把树上的每一个孩子都从这个网址上
目标,当页面加载时,从消防基地抓取一个随机项目并显示出来。
数据结构
grabbit (table name)
active (for active items for sale)
category (the category of the item ie womensClothes, MensShoes etc)
unique id of the item
在页面加载中,进入并获取其中任何一个类别并返回它。
脚本
var grabbitRef = new Firebase
我在云函数上使用了firebase云函数和javascript。而且,我想从javascript切换到typescript。
但是,我不能在typescript上使用firebase-admin,因为以下命令失败。
command: npm install @types/firebase-admin --save-dev
error: '@types/firebase-admin' is not in the npm registry.
根据此发行说明,firebase管理员似乎支持typescript。谁能告诉我们如何在云函数上使用typescript和firebase-a
我的HTTP Firebase函数每运行一次就会收到这个错误:
Function execution took ****ms, finished with status: 'connection error'
它发生的不一致,但我不能完全缩小问题的范围。我不相信这个错误在我的应用程序中,因为它没有显示错误打印出来。在运行这个云功能时,我自己与firebase的连接并没有中断。
知道为什么Firebase随机失败云函数执行与“连接错误”吗?
我正致力于实现出现在防火墙文档更改中的推送通知。我在使用反应-本机-火基模块。我的google云功能监听对消防局的更改,然后通过firebase-admin发送消息。
google的参考文件说,您可以指定一个设备来发送消息:
// This registration token comes from the client FCM SDKs.
var registrationToken = 'YOUR_REGISTRATION_TOKEN';
var message = {
data: {
score: '850',
time: '2