Sample that produces the following issue with Firebase Database web in Flutter

Sample that produces the following issue with Firebase Database web in Flutter.

@firebase/database:
Error: Bad state: Cannot fire new event. Controller is already firing an event`

Getting Started:

- add firebase configuration for android `google-services.json` file with package `com.example.issue_rtdb_controller_already_firing_event`.
- update the `web/firebase-config.js` file with your Firebase configuration.
- add/update firebase database rules with the following:
    ```
    {
        "rules": {
            "data_logs": {
                ".indexOn": ["isLogged"],
                ".read": true,
                ".write": true,
            }
        }
    }
    ```
- Now you can run the app.

Source: https://github.com/deepak786/issue_rtdb_controller_already_firing_event?ref=flutterawesome.com

Default image
Lingaraj Senapati
Hey There! I am Lingaraj Senapati, the Co-founder of lingarajtechhub.com My skills are Freelance, Web Developer & Designer, Corporate Trainer, Digital Marketer & Youtuber.
Articles: 253

Newsletter Updates

Enter your email address below to subscribe to our newsletter