0

Users are uploading images from the web to Fire Storage. I want to send a notification to the client app when the image is uploaded. Is there a way?

1 Answers1

1

Is there a way to send a notification to the app (using FCM or token) when an image file is added to Firebase Storage?

Yes, you can trigger a function on Cloud Storage changes:

Use functions.storage to create a function that handles Cloud Storage events.

Alternatively, you can store the URL of the image you have uploaded to Firebase Storage into the Cloud Firestore, and again trigger a function on document update, as explained in the following answer:

Alex Mamo
  • 112,184
  • 14
  • 139
  • 167