I downloaded and implemented the new GCM client sample that uses Class GoogleCloudMessaging
from library google-play-services.jar
. I get error SERVICE_NOT_AVAILABLE
. I know that the jar file is the last version. I studied every posts about error SERVICE_NOT_AVAILABLE
but I could not solve it.
Then I tested the old GCM client sample that uses gcm.jar
. I could register my device successfully and got registration ID. Because my package name for these two applications was same I could use that registration ID in the new sample and the application worked correctly and got messages successfully.
So now I know that the error in new GCM client sample is not about my Wi-Fi or firewall or…
Now I want to know what the real problem is. My manifests in two projects are same and I have all needed permissions in both manifests.
What should I do now? How can I solve the problem?