It is possible to trigger cloud functions on write events, but I can't find any documentation for triggering after reading (eg, firebase.database().ref().once('value')...
).
Any recommendations on the best way to go about handling this use case?
There is no trigger for responding to client reads. It's assumed that apps will have massive amounts of reads, and having code run for each of those reads would be incredibly expensive. If you want to run some code when the client performs some action, have the client call an HTTPS function when that action should occur.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With