• Resolved joshuabecker1

    (@joshuabecker1)


    Hello!

    I have been using this plugin for a while now and it has been fantastic! Big fan of your work.

    One question, I have been using your plugin to initialize firebase so that I could use firebase functions in another plugin I am creating. However, now I am getting this javascript error:
    Uncaught (in promise) FirebaseError: Firebase: No Firebase App ‘[DEFAULT]’ has been created – call Firebase App.initializeApp()

    I realize this error most likely means that I am not initializing firebase – and I am not. But that is because I have been depending on the initialization happening in your plugin. Am I going about this the wrong way? Are you familiar with this problem? Any help would be greatly appreciated! Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter joshuabecker1

    (@joshuabecker1)

    I believe something must have changed in the last update, because it had been working up until last Saturday.

    More info: Goal is to simply piggy back off of your app’s firebase.initialize OR reinitialize securely using methods your plugin already has.

    Thread Starter joshuabecker1

    (@joshuabecker1)

    I figured it out!

    Answer – must set ‘firebase’ as a dependency when you wp_enqueue_scripts

    *If this is unwise or there is a better way, please let me know!

    Plugin Author Dale Nguyen

    (@hanthuy)

    Hi Joshuabecker1, you need to set firebase as dependencies before using it. Just like you need jQuery for other operations.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No longer able to access Firebase from other Plugins’ is closed to new replies.