I'm trying to use the notification in an Android app, I found many tuto but all use the com.google.android.gcm pakage which are deprecated. I see that I have to use the com.google.android.gms.gcm.GoogleCloudMessaging pakage... but I don't succeed to import this package.
and I always have the same error: The import com.google.android.gms.gcm.GoogleCloudMessaging cannot be resolved
Did I forget to add a jar or an other file I miss?
thanks
edit: I miss this page with the informations (give in the other discution above) for the setup: http://developer.android.com/google/play-services/setup.html#Setup
I just don't copy the lib of Google Play.
Whether you added gcm.jar in your project?
Go to Android SDK Manager->Extras->GCM. Downlad it. Go to particular location.
It will contain gcm.jar.Add in your project.
Excellent tutorial is given here
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With