title: How to create an event in cordova which should trigger when a child in firebase realtime db changes
body: <p>Could you please help me to fix the below code, I need an event that should trigger when any child changes, Similar code works perfectly on the web app but when I am trying with Cordova android am getting an error <strong>Uncaught TypeError: firebaseThings.on is not a function</strong></p>
  <pre class="lang-js prettyprint-override"><code>var firebaseThings = window.FirebaseDatabasePlugin.ref(value);
  firebaseThings.on('child_changed', (snapshot) =&gt; {
      console.log('user was changed !!') ;
      if(snapshot.key==&quot;offersdp&quot;)
      {
          alert(snapshot.value);
      }
  
  });
  </code></pre>