Ionic3 Angularfire listen to firestore changes

Discussão em 'Angular' iniciado por Eric Ong, Dezembro 27, 2024.

  1. Eric Ong

    Eric Ong Guest

    how do I listen to event after firebase cloud function had successfully updated a document? Because there is a few seconds lag while the function is running. I want to implement a loading screen and dismiss it when the function successfully updated the record.

    example:

    1. MyApp update data to firebase ref A
    2. firebase function detect changes in ref A and execute update same data to ref B
    3. MyApp does not know when will firebase function complete step 2 above, i need to listen to ref B for changes done to dismiss the loading

    Continue reading...

Compartilhe esta Página