I having a case where I need to receive notification whenever Realtime Database Firebase have new data. When investigate, I found out there are 2 way to do this in client side (mobile app using React Native):
Can someone please tell me what is the difference between 2 way and pros and cons of each way?. The document is not helpful for me about this.
Note:
- Backend Server written in Java framework Spring boot response function push new data to Realtime Database Firebase.
- Client side need to receive notification when new data added to Realtime Database Firebase (currently only mobile app written in React Native but I also need to do it for web in the future)
child-addedevent. There is no significant difference betweenchild-addedon various platforms. --- As it stands your question it unclear and will likely be closed. I recommend editing it (there's a link under it), to describe what you are trying to accomplish (and on what platform).