1 Reply Latest reply on Jan 8, 2019 10:15 AM by ppetree

    For the phonegap-plugin-push FCM  i get "Error - The following splash screen or icon file does not exist: google-services.json"

    yairc56797368 Level 1

      For CLI 7.0.1

       

      <preference name='phonegap-version' value='cli-7.0.1' />'

       

      <platform name="android">

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

      </platform>

       

      <plugin name="phonegap-plugin-push" spec="2.0.0" source="npm">

        <param name="SENDER_ID" value="534666947217" />

      </plugin>

       

       

      I use the phonegap online build Adobe PhoneGap Build

       

      I downloaded the google-services.json from my FCM projects and put it everywhere

      under root

      under root/app

       

       

      From the Log file:

       

      ...

       

      Updating icons at ../res

        copy assets/app-icons/android/drawable-hdpi/ic_launcher.png ../res/mipmap-hdpi/icon.png (new file)

        copy assets/app-icons/android/drawable-ldpi/ic_launcher.png ../res/mipmap-ldpi/icon.png (new file)

        copy assets/app-icons/android/drawable-mdpi/ic_launcher.png ../res/mipmap-mdpi/icon.png (new file)

        copy assets/app-icons/android/drawable-xhdpi/ic_launcher.png ../res/mipmap-xhdpi/icon.png (new file)

        copy assets/app-icons/android/drawable-xxhdpi/ic_launcher.png ../res/mipmap-xxhdpi/icon.png (new file)

      This app does not have splash screens defined

      Updating resource files at ..

      Error: Source path does not exist: google-services.json

        at updatePathInternal (/cordova/node_modules/cordova-common/src/FileUpdater.js:145:19)

        at /cordova/node_modules/cordova-common/src/FileUpdater.js:223:19

        at Array.forEach (native)

        at Object.updatePaths (/cordova/node_modules/cordova-common/src/FileUpdater.js:221:33)

        at updateFileResources (/cordova/lib/prepare.js:423:17)

        at /cordova/lib/prepare.js:51:9

        at _fulfilled (/cordova/node_modules/q/q.js:854:54)

        at self.promiseDispatch.done (/cordova/node_modules/q/q.js:883:30)

        at Promise.promise.promiseDispatch (/cordova/node_modules/q/q.js:816:13)

        at /cordova/node_modules/q/q.js:624:44