Hi all,
        I implemented GCM i.e., Google Cloud Messaging in my
application. I got registration id and i sent to backend team.our
backend team sending msg's to device. but i am not able to receive
those messages. sday i received 2 messages out of 10. but 2day i
didn't receive single message also. If any body knows the reason then
plz tell 2 me... Please see my code attached here..

public class GCMIntentService extends GCMBaseIntentService{

        public GCMIntentService(){
                super(Utils.GCMSenderId);
        }

        @Override
        protected void onError(Context context, String regId) {
                Log.e("", "error registration id : "+regId);
        }

        @Override
        protected void onMessage(Context context, Intent intent) {
                String message = intent.getStringExtra("message");
                Log.e("message  is", ""+message);
        }

        @Override
        protected void onRegistered(Context context, String regId) {
                handleRegistration(context, regId);
        }

        @Override
        protected void onUnregistered(Context context, String regId) {

        }
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to