当图像文件添加到 Firebase 存储时,有没有办法向应用程序发送通知(使用 FCM 或令牌)?
Is there a way to send a notification to the app (using FCM or token) when an image file is added to Firebase Storage?
用户正在将图像从 Web 上传到 Fire Storage。我想在上传图片时向客户端应用程序发送通知。有办法吗?
Is there a way to send a notification to the app (using FCM or token) when an image file is added to Firebase Storage?
可以 trigger a function on Cloud Storage changes:
Use functions.storage to create a function that handles Cloud Storage events.
或者,您可以存储 URL of the image you have uploaded to Firebase Storage into the Cloud Firestore,然后再次触发文档更新功能,如以下答案所述:
用户正在将图像从 Web 上传到 Fire Storage。我想在上传图片时向客户端应用程序发送通知。有办法吗?
Is there a way to send a notification to the app (using FCM or token) when an image file is added to Firebase Storage?
可以 trigger a function on Cloud Storage changes:
Use functions.storage to create a function that handles Cloud Storage events.
或者,您可以存储 URL of the image you have uploaded to Firebase Storage into the Cloud Firestore,然后再次触发文档更新功能,如以下答案所述: