Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

GoogleService failed to initialize #492

Closed
kaynz opened this issue Jan 11, 2016 · 9 comments
Closed

GoogleService failed to initialize #492

kaynz opened this issue Jan 11, 2016 · 9 comments
Assignees
Milestone

Comments

@kaynz
Copy link

kaynz commented Jan 11, 2016

Hi, getting errors on appstart and on message receiving via gcm on my android phone

Here's a paste of the logcat output: http://pastebin.com/26wuaCqi
I've got following in my manifest:

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" tools:replace="android:value" />
@macdonst
Copy link
Member

@kaynz is that causing any problems in your app or is it just a warning?

@kaynz
Copy link
Author

kaynz commented Jan 11, 2016

It's red (Log.e()), so it's meant to be an error. Actually I'm debugging some crashes and noticed this error. My app does not crash when the error happens but I'm not sure if it's causing crashes later in app progress.

@macdonst
Copy link
Member

@kaynz I don't think it will cause a crash but I do think I can fix it.

@kaynz
Copy link
Author

kaynz commented Jan 11, 2016

@macdonst thanks! =)

@macdonst
Copy link
Member

@kaynz I checked in the fix to the v1.6.x branch. I've fixed it so you no longer get the error log but there is no problem caused by this that I can find.

@macdonst macdonst added this to the Release 1.6.0 milestone Jan 11, 2016
@macdonst macdonst self-assigned this Jan 11, 2016
@kaynz
Copy link
Author

kaynz commented Jan 11, 2016

Thanks, great! :)

@kaynz
Copy link
Author

kaynz commented Jan 20, 2016

Hi @macdonst,

did you try this out?

Still getting the error.

My config looks like this:

<plugin name="phonegap-plugin-push" spec="~1.5.3">
    <variable name="SENDER_ID" value="#projectNumber"/>
</plugin>

Error:

01-20 10:29:04.998 18354-18354/de.app E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services.  Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.

@macdonst
Copy link
Member

@kaynz I didn't release the fix yet. It slightly changes the way you setup the plugin so I wanted to include it in the upcoming 1.6.0 release.

denisbabineau added a commit to denisbabineau/phonegap-plugin-push that referenced this issue Feb 22, 2016
…os-gcm-topics

* commit '3a1eda75f5f6500e1d040b4908970d8127533587':
  Issue phonegap#79: Subscribe to Topics for iOS
  Issue phonegap#492: GoogleService failed to initialize

Conflicts:
	docs/INSTALLATION.md
@macdonst macdonst removed the staging label Mar 9, 2016
@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants