
[英]How to send a large amount of push notifications using FCM with firebase admin SDK?
我有一个 cron 作业 function 在 Firebase 函数上运行,它从我在 Firestore 中的用户集合中获取所有文档,并使用 FCM 向他们的设备发送通知。 由于在一个 go 中可以发送多少令牌的限制,我将我所有的用户令牌分成 100 个块,并分批发送。 我试图从文档中了解这是否 ...
[英]How to send a large amount of push notifications using FCM with firebase admin SDK?
我有一个 cron 作业 function 在 Firebase 函数上运行,它从我在 Firestore 中的用户集合中获取所有文档,并使用 FCM 向他们的设备发送通知。 由于在一个 go 中可以发送多少令牌的限制,我将我所有的用户令牌分成 100 个块,并分批发送。 我试图从文档中了解这是否 ...
[英]Importing firebase cloud functions in a React project
我正在构建一个 React 应用程序(这部分可能无关紧要)并构建了一个服务器云 function: 我知道在我的客户中调用它通常包括调用 我已经在一个单独的项目中尝试过这个,而且它有效。 但是,那是使用脚本标记在我的index.html中导入函数模块: 但在我当前的项目中,我的模块是在我的fireb ...
[英]VS Code Intellisense works for .ts files but not for .js files
我正在使用 firebase 函数。 VScode 不会向我显示 .js 文件的错误和建议,但如果我将扩展名更改为 .ts,它会起作用。 我的项目没有使用 TypeScript。 此外,我将它与 JavaScript 一起用于托管,Intellisense 运行良好! 我不知道,怎么了? ...
[英]Failed to get Firebase project xxxxxx. Please make sure the project exists and your account has permission to access it
我在Flutter(A,B)有两个项目,在项目AI中正常连接到Firebase一切正常,它带来数据,发送数据,更新和删除数据。 因为那个项目来自我的个人谷歌账户,但是当我使用非个人的项目 B 时,它来自外部账户,它不允许我携带数据,它不允许我做任何事情,我得到了控制台。 [2023-02-01T03 ...
[英]Function execution took 540029 ms, finished with status: 'timeout'
我创建了一个连接到 MQTT 代理的云 function 我使用了第三方 MQTT 代理(Mosquito MQTT 代理),并在每次 MQTT 代理从机器接收数据时将数据发送到 Firebase 实时数据库。 我正在使用 GCP 控制台编写和部署 function。我成功部署了 function ...
[英]Cloudfunction v2 invoked by pubsub logs "Either allow unauthenticated invocations or set the proper Authorization header."
我创建了一个由 pubsub 主题/订阅 messagePublished 事件调用的 cloudfunction v2。 但是,每当它被触发时,我都会收到此错误: 我尝试将具有“Cloud Functions Invoker”角色的“allUsers”主体添加到云 function,但无论如何我 ...
[英]Run firebase schedule function one time and delete it once it run(cancel the recurrence)
我正在为该项目使用 Firebase 服务。 我们要求用户可以在特定时间安排任务。 例如 1 月 30 日下午 2 点,2 月 2 日下午 3 点和 N。在特定的日期和时间,调度程序必须启动并执行逻辑并且必须删除而不重复。 为此,我探索了 firebase 服务,找到了 firebase 可以使用 ...
[英]Stripe firebase extension
我有一个 expo android 应用程序和反应 web 应用程序。 这两个应用程序都使用来自 firebase 的电话身份验证。在创建新用户时,stripe 扩展会同时在 stripe 中创建一个新用户。 问题是我的客户主要登录 android 应用程序,而不是 web 应用程序。 现在我需要为 ...
[英]Is there a way to tell if a user is registered with phone number or email & password on Firebase Auth
我正在构建一个后端为 Firebase 的 React App。 我有两种类型的用户,管理员用户和标准用户。 管理员由超级管理员使用 email 和密码创建,他们的电话号码设置为他们的个人资料。 标准用户使用电话号码注册。 我想使用带有 onCreate 身份验证触发器的 Firebase 云功能为 ...
[英]Send email from NestJS, deployed to Firebase functions to the associated Gmail account's address
我有一个 NestJS 应用程序部署到 Firebase,并连接了 Firebase 函数。 我有一个 API 它接受来自不同 Firebase Angular 前端项目的表单数据(我更喜欢将 BE 和 FE 项目分开)。 由于验证目的,我想通过我的 NestJS 后端将该联系表单数据通过 emai ...
[英]How to resolve firebase deploy Parsing error: Cannot read file
我今天第一次尝试 firebase 部署功能。 当我在终端中命令$ firebase deploy时,出现如下解析错误。 我发现tsconfig.json 文件路径很奇怪。 函数目录重复。 但是我找不到收集问题的方法。 当前的项目结构如下。 .eslintrc.jsmodule.exports ...
[英]Cloud Functions: How to Insert Data into BigQuery when a file is Uploaded into a GCS Bucket?
我是 GCP Cloud Functions 的新手,我正在尝试将 function 添加到我现有的代码中,这将在将特定文件上传到我的 GCS Bucket 时将数据插入 BigQuery。 我不确定如何编写一个 function 来完成这个任务——比如,我是否需要编写一个 function 来首 ...
[英]how to schedule a Firebase Cloud function to run in 5 minutes on a specific firestore document upon creation
我想拨打支付提供商的验证电话 API 以查看交易状态。 问题。 支付提供商发送带有交易状态的 webhook,但有时此过程会失败。 我通常会在收到 webhook 后更新 firestore 文档中的交易状态,但有时这会失败,导致支付网关的控制台和 firestore 文档中的状态不一致。 建议的解 ...
[英]terraform: Error while adding "secret_environment_variables" in google_cloudfunctions_function resource
我已经为 cloudFunction 尝试了以下 tf 代码。 但是,我在 terraform 验证中收到以下错误。 不知道为什么会报这样的错误。 请注意:我的 terraform 版本是:0.14.11,谷歌提供商版本是:v3.90.1 我在这里检查了类似的问题: terraform: how t ...
[英]How to use a Google Cloud Task Queue and get a json response?
我想在我的 firebase 云 function 中使用 Google Cloud Task Queue 调用另一个 function 并返回工作。 这是我们可以用 Google Cloud Task 做的事情吗? 我正在尝试做一些类似的事情,例如 Redis 队列,一旦工作完成,我就可以获得结 ...
[英]Using AWS Rekognition in a google cloud function
我是 AWS 的新手,想知道是否可以在从 Google Cloud Storage 提取图像的 Google Cloud Function 中使用 AWS Rekognition? 如果是这样,使它起作用的关键步骤是什么? 谢谢 ...
[英]Firestore exception occurred in retry method that was not classified as transient
我将 GCP 与节点 16 和 Firestore 一起使用。 我正在获取子集合的数据并按 ID 更新。 在console.log(subCollect.id); 和console.log(subCollect.data()); 记录的信息是正确的。 在更新命令中,我收到以下错误 更新错误: ...
[英]How can i know that my firebase cloud function is working or not?
我创建了一个 firebase function,如下所示,但我不知道如何调试它,我正在使用npm run serve 我正在尝试在我的实时数据库中创建、更新、删除数据,如果您看到参考资料是开发。 但是当我检查我的 rt 数据库时,它没有任何改变。 首先,在我看到它没有更新任何内容后,我正在编辑我 ...
[英]How to create a Plaid LinkToken using Node JS?
我相信 Plaid 更新了它的 createLinkToken 文档,但我似乎无法弄清楚我在这里做错了什么。 我正在上一门课程,这里是使用 FirebaseFunction 创建带有 Plaid 的链接令牌的旧代码: 我已经尝试了很多东西。 我知道plaid.Client现在是new.Config ...
[英]How do you add a web App to your Google Cloud console?
我需要为我的应用程序创建一个开发 Google OAuth 2.0 客户端 ID。 我看到您在允许的来源列表中不能有 http 的来源。 错误状态... 来源无效:此应用的发布状态为“生产中”。 URI 必须使用 https:// 作为方案。 所以看来我需要创建一个“开发应用程序”,以便它可以拥 ...