title: Phonegap Push Notification - PushNotification.init() not firing
body: <p>I have a Phonegap project which is attempting to receive push notifications using the <strong>phonegap-plugin-push</strong>.</p>
  
  <p>I have signed up and setup my Firebase app (FCM) and downloaded the <strong>google-services.json</strong> and placed it in my root (next to the config.xml).</p>
  
  <p>When I test using Phonegap Mobile Dev App on my device, the PushNotification.init() is firing as expected.</p>
  
  <p>** <strong>Problem:</strong> When I compile and install an APK through Phonegap Build (online), the PushNotification.init() is not firing.</p>
  
  <p>My config.xml looks like this:</p>
  
  <pre><code>&lt;engine name="android" spec="^7.0.0" /&gt;
  &lt;engine name="browser" spec="^5.0.4" /&gt;
  &lt;plugin name="cordova-plugin-whitelist" spec="1" /&gt;
  &lt;plugin name="cordova-plugin-splashscreen" spec="^5.0.2" /&gt;
  &lt;plugin name="cordova-plugin-network-information" spec="^2.0.1" /&gt;
  &lt;plugin name="cordova-plugin-file" spec="^6.0.1" /&gt;
  &lt;plugin name="cordova-plugin-globalization" spec="^1.11.0" /&gt;
  &lt;plugin name="phonegap-plugin-push" spec="^2.1.3"&gt;
      &lt;variable name="FCM_VERSION" value="11.6.2" /&gt;
  &lt;/plugin&gt;
  &lt;platform name="android"&gt;
      &lt;allow-intent href="market:*" /&gt;
      &lt;resource-file src="google-services.json" target="app/google-services.json" /&gt;
  &lt;/platform&gt;
  </code></pre>
  
  <p>My index.js looks like this:</p>
  
  <pre><code>onDeviceReady: function() {
      console.log('DEVICE READY...');
  
      var push = PushNotification.init({
          "android": {
              vibrate: true,
              sound: true,
              forceShow: true,
          },
          "browser": {
              pushServiceURL: 'http://push.api.phonegap.com/v1/push'
          },
          "ios": {
              alert: true,
              badge: true,
              sound: true
          }
      });
  
      push.on('error', function(e) {
          console.log("push error = " + e.message);
      });
  
      push.subscribe('example', function () {
          console.log('Subscription error:');
          console.log(e);
      });
  
      PushNotification.hasPermission(function (data) {
          console.log("data.isEnabled = " + data.isEnabled);
      });
  
  
      push.on('registration', function (data) {
          console.log(data.registrationId);
          console.log(data.registrationType);
      });
  
      push.on('notification', function (data) {
          console.log(data.message);
          console.log(data.title);
          console.log(data.count);
          console.log(data.sound);
          console.log(data.image);
          console.log(data.additionalData);
          console.log(navigator.notification);
  
          navigator.notification.alert(data.message, null, data.title,'Ok');
      });
  }
  </code></pre>
  
  <p>Any ideas?</p>