Why I Can't Receive Messages From Gcm On Android Device
I am creating an android application where I need to send gcm messages. So far I managed to get device id and to sent it to my server. Now when I'm trying to push a message from my
Solution 1:
Finally I found... I put logs in GcmReceive, and it prints the log :), then I went to IntentServices, and there I found that the message has arived but notification didn't actually notify the message. So far I didn't found yet what the problem is with my notification but, I think is something wrong with this line :
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), 0);
I am glad that the biggest problem is solved. Now I am searching arround what I'm doing wrong with Notification.
Thanks very much to everyone who tried to help...
Solution 2:
Kindly refer the tutorial of GCM here. According to me you are missing the configuration file of GCM which has the APP_SERVER_URL, GOOGLE_PROJECT_ID.
Post a Comment for "Why I Can't Receive Messages From Gcm On Android Device"