gavinzheng / chrometophone

Automatically exported from code.google.com/p/chrometophone
0 stars 0 forks source link

C2DM development #233

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I modified the chrometophone'packagename to "com.huawei.sns",and modified the 
appengine'packagename to "com.huawei.sns".Also, I applied for the app account
(stp.huaweisns@gmail.com),and deployed the appengine to appengineServer.

Then I modified the chrometophone code: 
registered address: https://huaweisns.appspot.com
app account : stp.huaweisns@gmail.com
the chrome extension address of send message : var baseUrl = 
'https://huaweisns.appspot.com'; in the "send_logic.js"

Now i can register successfully on appengine,but when i click the chrome 
extension,it can't to send.say:  Error: Unable to send link to phone.

So i debugg my Application,I find  the line : responseCode == 
HttpServletResponse.SC_UNAUTHORIZED. The C2DMServer back it.

But when i send the message to C2DMServer i already set the Authorization in 
the POST Header. The AuthToken is  in my phoneDB ,account.db : "ah" Column.

My English is poor ,I Do not know let you understand.
thanks!

Original issue reported on code.google.com by caojianh...@gmail.com on 18 Oct 2010 at 1:07