title: Cordova FCM plugin
body: <p>
  I'm very new to cordova. I have installed this plugin from <a href="https://www.npmjs.com/package/cordova-plugin-fcm" rel="nofollow noreferrer">this</a> page. My question is where do I put this code if I'm not using <code>ionic</code>?:</p>
  
  <p><code>FCMPlugin.onTokenRefresh(function(token){
      alert( token );
  });</code></p>
  
  <p>I have managed to the token on Chrome using official firebase documentation, but the same does not work on Firefox and cordova. 
  If I put the above code in the index.html file it does work and I don't get errors whatsoever. I seen so many videos on Youtube that use <code>ionic</code> and they put this code in <code>.ts</code> file. When I started my project I did not use ionic. Do I need to use ionic for this plugin to work?</p>
  
  <p>NB: my main aim is to get the token.</p>