To register an device by using GCMRegistratrar, but can not receive the error response.

49 views
Skip to first unread message

allen23777

unread,
Sep 6, 2012, 4:12:49 AM9/6/12
to andro...@googlegroups.com

I try to use GCMRegistrar to regist my device on GCM,
Before I send the request by using GCMRegistrar.register(this, SENDER_ID), I turned off the network connection.

Then I see the below log.
09-06 15:56:34.850: V/GCMRegistrar(10452): Registering app com.amazon.mShop.android of senders 593777502750
09-06 15:56:34.880: E/C2DMRegistrar(319): [C2DMReg] handleRequest caught java.net.UnknownHostException: android.clients.google.com

But my app never receive an intent that can tell me what happen.
I'd like to receive an intent so that the onError or onRecoverableError can be trigger to know the time out or whatever happens?
Because I need rely on this result to do the next work?

Can someone give some advice?
Any tip is appreciated.
Reply all
Reply to author
Forward
0 new messages