Skip to content
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.

copy_google_services.js ionic package build #30

Open
casper5822 opened this issue Mar 12, 2017 · 8 comments
Open

copy_google_services.js ionic package build #30

casper5822 opened this issue Mar 12, 2017 · 8 comments

Comments

@casper5822
Copy link

casper5822 commented Mar 12, 2017

Hello everyone,
i get this error using the copy_google_services hook for ios package operation on the Ionic Cloud Service:

iOS project created with [email protected]
Error: Invalid data, chunk must be a string or buffer, not object.

I put the hook in the config.xml as described, and copy the GooglePlist file into the www folder.
Thank for the help.
Best regards.

@vlavrynovych
Copy link
Contributor

vlavrynovych commented Jul 13, 2017

Hi @casper5822! I also faced same problem. So, I have a fix for this. I'll do the PR

vlavrynovych added a commit to vlavrynovych/ionic-package-hooks that referenced this issue Jul 13, 2017
vlavrynovych added a commit to vlavrynovych/ionic-package-hooks that referenced this issue Jul 13, 2017
vlavrynovych added a commit to vlavrynovych/ionic-package-hooks that referenced this issue Jul 13, 2017
@etcharran
Copy link

Hello, this is happening to me, is there a solution?
Im building through ionic cloud
output:
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: ar.com.test.test.test.mobile
Name: test
iOS project created with [email protected]
Error: Invalid data, chunk must be a string or buffer, not object

@vlavrynovych
Copy link
Contributor

vlavrynovych commented Aug 16, 2017

Hello @etcharran,

If you already have a previous version of this hook please check out my fix which was merged to the master. Just copy-paste it.

If you are using cordova-plugin-firebase please note that they are using the same hook (their version), but without my fix. And that means that potentially you can see this error from that plugin.

P.S. gonna prepare a PR to the cordova-plugin-firebase repository with same fix

@vlavrynovych
Copy link
Contributor

Hey @etcharran,

I've prepared a PR for cordova-plugin-firebase. Please leave a comment there if you are sure that the issue with their plugin

@etcharran
Copy link

Thanks for the quick answer, i think my problem is with cordova-plugin-fcm. I'll be leaving a comment soon

@vlavrynovych
Copy link
Contributor

@etcharran,

Hmm... I see that the cordova-plugin-fcm uses script that is very similar.

@vlavrynovych
Copy link
Contributor

Hello @etcharran, I've prepared a PR for cordova-plugin-fcm plugin for you. Hope it will help

@etcharran
Copy link

Thank you very much @vlavrynovych , i finally built my app with a mac, but if they implement the change i'll start building it with ionic cloud

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants