how to trigger firebase cloud function on read event

后端 未结 1 1367
慢半拍i
慢半拍i 2020-12-07 03:58

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

相关标签:
1条回答
  • 2020-12-07 04:31

    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.

    0 讨论(0)
提交回复
热议问题