Open BSchwetzel opened 7 years ago
I get same problem. I try to upload by zip or use git pull, put google-services.json file in different places, but I always get the error message
:processDebugGoogleServices FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
/project/src/debug/google-services.json
/project/google-services.json
Is there a special location where to put files to be copied at the root for each platform ? I try to put in "locales/android/" but it doesn't work.
+1 . Android build fails! (iOS build works here, but had no time to test the resulting App yet..)
Any solitions? Same problem for me
The same using cordova. I have the google-services.json in the root directory. I can solve this problem when I put this file into platforms/android But in the documentation the place for this file is the root directory
Yo can also solve it by using this additional plugin: https://github.com/stetro/cordova-plugin-fcm-config Tested for on Android projects
@ironbone How do you use cordova-plugin-fcm-config
with PGB?
My steps:
<plugin name="cordova-plugin-fcm-config" spec="https://github.com/stetro/cordova-plugin-fcm-config" />
to my config.xml
.google-services.json
and GoogleService-Info.plist
to my package.zip
.In log I see:
Parsing json file: /project/google-services.json
:processDebugGoogleServices FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
> Missing project_info object
So seems like google-services.json
is empty.
I gelieve, for now, the only way with PGB is to fork the cordova-plugin-fcm(-plus ) in a private repository, add the Services files hardcoded, and then in phonegap use a private project, and use https://user:pass@bitbucket.org/reponame as a plugin in config.xml
Thanks! I've added a special user for PGB with read-only access to the repo and it works fine. Didn't know bitbucket offers free private repos :-).
change the location from the file google-service.json
to /project/
@twicejr
We are almost there, but stuck on the same issue you had. Hope you could help.
Thx.
Please try what osielcc said first, though
@twicejr
Thx for the quick response. Working on it, will update the results tomorrow.
I couldn't get the phonegap to work with FCM. I have used Cordova Command-line-interface (CLI) to build the app (instead of PhoneGap) and it worked.
thanks for the help.
Hello.. Any news about the problem? Maybe another solution as forking the repo?
@twicejr @Eccenux After trying to compile in PGB I get this error on Log:
Repository "https://eyalish:xxxx@bitbucket.org/eyalish/cordova-plugin-fcm.git" checked out to git ref "master" at "5bd09ec".
Either there is a connection problems, or plugin spec is incorrect: Cannot find plugin.xml for plugin "1517826896997". Please try adding it again.
using CLI 8.0.0 using private bitbucket repo. [I used the master branch]. Any Ideas to fix this to work?
@eyalish You will need to fork (copy) cordova-plugin-fcm-config repo to your bitbucket repo. See readme: https://github.com/stetro/cordova-plugin-fcm-config#howto
Only the last part (about config.xml) is different and more like:
<plugin name="cordova-plugin-fcm-config" spec="https://readonly-user:password@bitbucket.org/username/cordova-plugin-fcm-config.git" />
Also note that
bitbucket.org/username/cordova-plugin-fcm-config.git
should be the address of your private repo you created on Bitbucket.readonly-user
should be a special user you create with read-only access to the repo.This is due to security concerns.
@Eccenux thanks. It says over the config plugin it is not necessary with FCM plugin 2+... I saw there are users on Bitbucket named "Phonegap builder" are these official ones? I will create new readonly-user access and see how it goes.
I dont know, but should you not hide your password here? Btw, I got denied access, so.. I suppose that is in this case a good thing.
Git server of bitbucket seems to want you to use https and then supply the password securely.. How you do it with phonegap? Dont know man.
If desperate and cannot change a setting in bitbucket or something, maybe setup your own git server ?
Op 7 feb. 2018 17:08 schreef "eyalish" notifications@github.com:
@Eccenux https://github.com/eccenux, okay I manage to compile in PGB the config git :) But when I add the fcm plugin I get another error:
remote: Unauthorized fatal: Authentication failed for 'https://pushfcm:066145699@ bitbucket.org/eyalish/cordova-plugin-fcm.git/'
two plugins are declared the same where the config is first (whereas pushfcm is a new special user with access to both)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fechanique/cordova-plugin-fcm/issues/73#issuecomment-363819006, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMqC9ggqm7-Wpnxkmx3FVcWBGZ1gEWTks5tScpugaJpZM4JlKZX .
The same problem still happening. And strangely, The search path(s) don't make any sense.
/project/src/nullnull/debug/google-services.json
/project/src/debug/nullnull/google-services.json
/project/src/nullnull/google-services.json
/project/src/debug/google-services.json
/project/src/nullnullDebug/google-services.json
/project/google-services.json
I have the google-services.json in platform/
platform/app
and platform/app/src
all failed.
@joelchucn put the services file outside the www folder, and then zip them both. it worked for me back then. the plugin works for me I just don't use it much
Hey,
I'm having a problem when building on Phonegap Build (the cloud service):
I'm using cli-6.3.0 for the build, I'm uploading a zip file. It fails regardless of where I put the file:
The iOS file is, of course, also there, but there the build fails for some other reasons (the log doesn't indicate a failure related to FCM).
Has anyone got an idea?