Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Push notification Tizen推送服务:错误3052_Push Notification_Tizen_Tizen Native App - Fatal编程技术网

Push notification Tizen推送服务:错误3052

Push notification Tizen推送服务:错误3052,push-notification,tizen,tizen-native-app,Push Notification,Tizen,Tizen Native App,我尝试使用Tizen推送消息服务发送通知 我得到这个错误 statusCode : 3052 StatusMsg : "error of application authentication failed - header: APPID, regId: 0000000000000000" 我不知道为什么,在文档中也找不到这个错误 只有当regId由Tizen开发人员设备(操作系统版本2.1)生成时,我才会出现这个错误。它可以与仿真器配合使用 在客户端,我们使用了基于示例“PushClient”

我尝试使用Tizen推送消息服务发送通知

我得到这个错误

statusCode : 3052
StatusMsg : "error of application authentication failed - header: APPID, regId: 0000000000000000"
我不知道为什么,在文档中也找不到这个错误

只有当regId由Tizen开发人员设备(操作系统版本2.1)生成时,我才会出现这个错误。它可以与仿真器配合使用

在客户端,我们使用了基于示例“PushClient”的本机应用程序

cf:

这是请求的详细信息

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,该regId有效


这仍然有点奇怪,因为有时生成的令牌似乎不起作用,我真的不知道为什么。

最后,我们只是删除设备上的应用程序。 已经生成了一个新的regId,该regId有效

这仍然有点奇怪,因为有时生成的令牌似乎不起作用,我真的不知道为什么