Voting: 
Vote up!
0 Votes
1 Replies
Unanswered

Push Notification

Question asked by Rodrigo Alves da Costa on Aug 03, 2017 10:19 EDT

Hi Guys, I'm using the engagement services to run push notification on my app but when I try to send a push to a particular subscriber I'm receiving the following error message: {   "id" : "",   "message" : "Authentication fail, Invalid credentials" } I've tried using the Authentication for Message API on Console -> Configuration -> Security enabled and disabled and in both cases the error message still the same. I don't want use authentication and token authorization on my requests. Anyone to help on that issue? thank you

Vote up!
0 votes
Vote down!

Just in order to provide more details, following my request:

 

POST /api/v1/messages/push HTTP/1.1
Host: myhostxxxxx.messaging.konycloud.com:443
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 36032f05-db0e-b0e9-935b-f7ac63686e00

{
  "messageRequest" : {
    "appId" : "My-App-ID",
    "global" : { },
    "messages" : {
      "message" : {
        "content" : {
          "priorityService" : "true",
          "data" : "teste msg",
          "mimeType" : "text/plain"
        },
        "overrideMessageId" : 0,
        "startTimestamp" : "0",
        "expiryTimestamp" : "0",
        "subscribers" : {
          "subscriber" : [ {
            "ksid" : "My-Subscriber-KSID"
          } ]
        },
        "platformSpecificProps" : {
          "title" : "Título message",
          "iphone" : {
            "title" : "Título message",
            "customData" : { }
          },
          "blackberry" : { },
          "android" : {
            "title" : "Título message"
          },
          "jpush" : {
            "key" : [ {
              "name" : "title",
              "value" : "Título message"
            } ]
          },
          "windows" : {
            "notificationType" : "TOAST",
            "text1" : "Título message",
            "text2" : "teste msg",
            "params" : { }
          },
          "wns" : {
            "notificationType" : "TOAST",
            "text1" : "Título message",
            "text2" : "teste msg",
            "params" : { },
            "image" : { },
            "text" : { }
          }
        },
        "type" : "PUSH"
      }
    }
  }
}

 

Replied by: Aug 03, 2017 11:04 EDT