Tizen推送服务:错误3052
问题描述:
我尝试使用Tizen推送消息服务发送通知。Tizen推送服务:错误3052
我得到这个错误
statusCode : 3052
StatusMsg : "error of application authentication failed - header: APPID, regId: 0000000000000000"
我想不通为什么,我不能找到文档中的这个错误。
只有在Tizen Developer Device(os版本2.1)生成regId时才会出现此错误。它可以在模拟器中正常工作。
在客户端,我们使用了基于示例'PushClient'的本机应用程序。
这里的请求细节
URL :
https://apnortheast.push.samsungosp.com:8088/spp/pns/api/push
Request Header :
Content-Type: application/json
Content-Length: 302
appID: APPID
appSecret: APPSECRET
Request Body :
{"regID":["04REGID"],"requestID":"REQUESTID","message":"badgeOption=INCREASE&badgeNumber=1&action=ALERT&alertMessage=1","appData":"{\"title\":\"\",\"description\":\"test\"}"}
Response :
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 162
Connection: keep-alive
{"results":[{"regID":"","requestID":"","statusCode":3052,"statusMsg":"error of application authentication failed - header: APPID, regId: 0000000000000000"}]}
什么想法?
答
最后,我们只是删除我们的设备上的应用程序。 已经生成了一个新的regId,这个工作正常。
它仍然有点奇怪,因为它似乎有时生成的令牌不起作用,我真的不知道为什么。