How to listen for changes in Firestore across multiple pages in FlutterFlow?

Database & APIs

"I'm trying to make a multiplayer quiz app in FlutterFlow. I set up a button on the 'QuizPreparationPage' (admin page) with actions to update the quiz field 'quizStatus' (String) to 'started', then navigate to 'PlayQuizPage' while passing quizRef. My question: How can I notify the 'WaitingQuizToStart' page, where users are waiting, to navigate to 'PlayQuizPage'?"

Please help me ๐Ÿ˜ƒ

Thank you

What have you tried so far?

I passed quizToStartRef (a document reference of the quiz) to the 'WaitingQuizToStart' page from the previous page. I tried to set up a condition on the page using 'On Data Changed,' but there is no option to access the quizStatus field to track its changes.

I also tried to bind AppState value to track changes from Firestore, but with no success (same problem)...

Did you check FlutterFlow's Documentation for this topic?
No
2
2 replies