Hello,
I am trying to use the cordova plugin ‘cordova-plugin-fcm’ in my NSB project, I added the library in the config.xml following the below:
after compiling with voltbuilder, the below error was raised
Source path does not exist: resources/android/google-services.json
Is your resource folder inside your www folder?
where should i add the folder ‘resources’ in my appstudio project.
Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly.
Drag the google-services.json
file into AppStudio’s Project Explorer.
The file will then be sent to VoltBuilder in
www/google-services.json
Put that path into the resource-file
statement.
I executed the above and I got the below error:
Failed to restore plugin “cordova-plugin-fcm”.
You might need to try adding it again.
Error: Error: cordova-plugin-fcm: You have installed platform android but file ‘google-services.json’ was not found in your Cordova project root folder.
Problem Solved when using : cordova-plugin-firebasex
Thank you,