Start a new topic

kinvey libraries still dependent on gcm.jar


As I was setting up the push notifications for android, I noticed that the Kinvey libraries are dependent on "gcm.jar" to be installed.

The "gcm.jar" is the old way of doing gcm and has now been deprecated by Google. Therefore the links that the Kinvey tutorials point to are not valid now as they redirect to install "google play services" now (the newer way).

Now, Iam trying to find where I can get a copy of the old gcm.jar as the project does not seem to work without that as the "KinveyGCMService" extends the old ""

Right now, I am only in the process of assessing Kinvey as a provider for our project so this is not a big problem for me, but wanted to know if these libraries will be updated in the near future ?

Also, are you aware of a good workaround for this currently ?


Ok, I'm having more trouble now, I found a gcm.jar from somewhere, but now the kinveygcmservice is calling the no-argument constructor which does not exist in baseintentservice ??

Can someone pls. answer this.

- ![]( "")

Further investigation -- looks like registration finishes and when the receiver is called to execute the "onregistered" it doesn't find a no-args constructor in GCMBaseIntentService..... ![]( "")

Phew! finally got it working. So the gcm.jar that I had obtained was not the one that would work, and I was finally able to download the right one from here -

Later on I saw that there was a checkbox for "obsolete" in SDK manager, when checked it started showing the "google cloud messaging" option. This would have helped me find the right gcm. Maybe you can add that hint in the tutorial also.

Hope you change the libraries to start using the new Gcm approach soon.

Hey Vik,

Wow, good find, and well solved! I know that Ed is definitely working on updating to the new GCM approach. You're right, updating our docs in the meantime seems like a great idea.
Hi, Thanks Vik for this.

After following the steps mentioned, I am getting this error

Device does not have package


Any suggestions on how to fix this?
Hey @robkinkc that method `checkDevice` is used to ensure gcm is only used on a google play enabled device. If you are testing on an emulator, create a new one with the google play services image instead of the android image.

More info can be found here:
Login or Signup to post a comment