0 Replies Latest reply on Dec 5, 2018 7:26 AM by hishighness

    phonegap-plugin-push does not work

    hishighness Level 1

      So I have been searching internet for whole day and there is no solution.

       

      App ID - 3397566

       

      Error: Error - A plugin you are using requires a preference: cdvCompileSdkVersion

       

      Here is my config.xml

       

      <preference name="phonegap-version" value="cli-8.0.0" />

          <preference name="SplashScreenDelay" value="0"/>

          <preference name="FadeSplashScreenDuration" value="0"/>

          <preference name="DisallowOverscroll" value="true" />

          <preference name="android-minSdkVersion" value="14" />

          <preference name="StatusBarOverlaysWebView" value="true" />

          <preference name="StatusBarBackgroundColor" value="#ee7600" />

          <plugin name="cordova-plugin-battery-status" source="npm" spec="~1.1.1" />

          <plugin name="cordova-plugin-camera" source="npm" spec="~2.1.1" />

          <plugin name="cordova-plugin-media-capture" source="npm" spec="~1.2.0" />

          <plugin name="cordova-plugin-console" source="npm" spec="~1.0.2" />

          <plugin name="cordova-plugin-contacts" source="npm" spec="~2.0.1" />

          <plugin name="cordova-plugin-device" source="npm" spec="~1.1.1" />

          <plugin name="cordova-plugin-device-motion" source="npm" spec="~1.2.0" />

          <plugin name="cordova-plugin-device-orientation" source="npm" spec="~1.0.2" />

          <plugin name="cordova-plugin-dialogs" source="npm" spec="~1.2.0" />

          <plugin name="cordova-plugin-file" source="npm" spec="~4.1.1" />

          <plugin name="cordova-plugin-file-transfer" source="npm" spec="~1.5.0" />

          <plugin name="cordova-plugin-geolocation" source="npm" spec="~2.1.0" />

          <plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.3" />

          <plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0" />

          <plugin name="cordova-plugin-media" source="npm" spec="~2.2.0" />

          <plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0" />

          <plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1" />

          <plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2" />

          <plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.0" />

          <plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />

          <plugin name="phonegap-plugin-mobile-accessibility" source="npm" spec="1.0.5"/>

          <gap:plugin name="phonegap-admob" source="npm"/>

         <plugin name="phonegap-plugin-push" spec="~2.1.2">

              <variable name="FCM_VERSION" value="11.0.1" />

          </plugin>

       

      <platform name="android">

              <icon density="ldpi" src="www/res/icon/android/drawable-ldpi-icon.png" />

              <icon density="mdpi" src="www/res/icon/android/drawable-mdpi-icon.png" />

              <icon density="hdpi" src="www/res/icon/android/drawable-hdpi-icon.png" />

              <icon density="xhdpi" src="www/res/icon/android/drawable-xhdpi-icon.png" />

              <icon density="xxhdpi" src="www/res/icon/android/drawable-xxhdpi-icon.png" />

              <icon density="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi-icon.png" />

             <allow-intent href="market:*" />

              <resource-file src="google-services.json" target="app/google-services.json" />

          </platform>

       

      <engine name="android" spec="~7.0.0" />

       

      What the hell has to be done? Tried everything. Is there bug on PGB?