Start a new topic

Push Notification android - Problem

Hello,


I would like to use Kinvey to do Push Notification.

I followed the guide to setup the "Receiver" and "GCM", my problem is to register a device via the command:

mKinveyClient.push().initialize(getApplication());

It produce the following error below. I'm using the last kinvey SDK and last Google Play Services repository. It seems GoogleCloudMessaging doesn't exist now no?


Your help will be really appreciate, thanks you


Process: lifesafe.guilla.com.safetycheck.guilla.com.safetycheck, PID: 18068

                                                   java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/gcm/GoogleCloudMessaging;

                                                       at com.kinvey.android.push.GCMPush.initialize(GCMPush.java:113)

                                                       at com.kinvey.android.push.GCMPush.initialize(GCMPush.java:89)

                                                       at com.kinvey.android.push.GCMPush.initialize(GCMPush.java:64)

                                                       at lifesafe.guilla.com.safetycheck.fragments.Disaster_fragment.Main_NoDisaster_fragment.onCreateView(Main_NoDisaster_fragment.java:120)

                                                       at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)

my problem c 


I resolved the problem, i added the obsolete Google Cloud Messaging in the SDK manager in android studio.

Hello Franck G,


We're happy that you were able to resolve the problem. Thank you for confirming.


Regards,


Billy Gee

Hi, 


I am facing this problem. Franks solution is not helping anymore.

Login or Signup to post a comment