Ionic "after_prepare" hook for copying google services config files


#1

Hi,

We are trying to use Ionic’s hook for copying push notifications service config files by adding it in config.xml.

<hook type="after_prepare" src="package-hooks/copy_google_services_config_files.js" />

as prescribed in link -

After applying this hook, build fails on Ionic cloud with following error in output.

Adding ios project…
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.XXXXXX.XXXXX.XXXXXX
Name: XXXXX XXXXX
iOS project created with cordova-ios@4.3.1
Error: Invalid data, chunk must be a string or buffer, not object

Can anyone please help us in resolving this error?