我試圖按照cordova-plugin-fcm插件的要求(此插件允許從Google Firebase接收推送通知)將「google-services.json」文件添加到Cordova項目根文件夾中。但是因爲我使用的是Meteor,所以項目根文件夾與cordova根文件夾不同。 我試着將文件添加到這兩個:如何將'google-services.json'文件添加到Meteor/Cordova項目?
/<meteor project root>/cordova-build-override/google-services.json /<meteor project root>/cordova-build-override/platforms/android/google-services.json
但是我仍然收到以下錯誤: While adding plugin [email protected] to Cordova project: Error: cordova-plugin-fcm: You have installed platform android but file 'google-services.json' was not found in your Cordova project root folder.
它通過這個文件啓動:https://github.com/fechanique/cordova-plugin-fcm/blob/master/scripts/fcm_config_files_process.js#L842
任何想法,我做錯了?
在此先感謝