stackmob/StackMob_iOS — Issue #25: Issue while sending push notification from stackmob push console
Author: charlieanna
Created: 2011-11-04 06:24:41+00:00
State: open

I have uploaded the certificate and now trying to send the notification but below this are the logs am getting. Could you guys pelase help me out? I have already used your c2dm and it works very nicely .

Request Headers

URL: http://umobile.mob1.stackmob.com/push/0/pocketcollege/push_tokens_universal

Authorization: OAuth realm="", oauth_signature="fQaj8brUIXwVT5XsDRmW%2FJuTZMo%3D", oauth_nonce="33376687420960982", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="c538c37d-50b6-4d55-8c72-a9f4fbd06b3c", oauth_timestamp="1320387765"

Content-Length: [216]

Accept-Encoding: []

Accept: [application/json]

Request Body

{
"payload": {
"kvPairs": {
"push_token_type": "iOS",
"alert": "Hi how are you?"
}
},
"tokens": [
{
"token": "4890A209934FE5020C53394D82C2EDBC1E1DADF138C9CDA65E53A27BB296D092",
"type": "iOS",
"registered_milliseconds": 1320387765549
}
]
}

Formatted JSON Raw JSON
Response Headers

HTTP/1.1 400 Bad Request

Content-Length: 27

Content-Type: application/json charset=UTF-8

Connection: close

Response Body

{
"error": "no valid tokens"
}