My system has been running at least two years. Most push notification requests get 200 response but recently I found that many messages were getting 500 response frequently.

In fact nearly 10% of push notifications are getting 500 response.

Please HELP!!!

If I resend the problem messages, everything is fine and the messages are delivered.

Example: Request is:

{
  "request": {
    "application": "3DXXX-59XXX",
    "username": "MyXXXXX",
    "password": "********",
    "notifications": [
      {
        "send_date": "now",
        "content": {
          "en": "Subscriber ID. 9000  Close  User 01"
        },
        "link": "",
        "data": {
          "userID": "12345"
        },
        "wp_type": "",
        "wp_background": "",
        "wp_count": "",
        "ios_badges": 51,
        "ios_sound": "short-tone.caf",
        "devices": [
          "APA91bHZHEhIMjVYwxyMk-4-YObazHfcxlQq7CmYto930nuIqHlQGCdzUQsnDcnHTB78wUcTlm-qhV3ipMqe9HO3kTqD9j_zgzSUUAdoGK0fbeRRGMNn69Z63BlQ9RqIdioZ4J2NFA0DLOUkroImk-it8p_3Glr5bRlnrl1_wT3ycXfsgvQZq4g"
        ],
        "page_id": "0",
        "android_sound": "five_sectoneone"
      }
    ]
  }
}

Response is: {"status_code":500,"status_message":"Invalid devices list"}

==============================================================
========================= Update =============================

After I upgrade Pushwoosh API from V1.2 to V1.3, the problem is gone. Can anyone explain this?

I now have a new problem. An existing user is no longer getting the messages delivered but the response is 200 but with "UnknownDevices". The user recently updated to ios 7 but nothing else has changed. See sample code below. I would appreciate any ideas on how to resolve this issue.

Thanks

My sample is:

request :

{
  "request": {
    "application": "3DXXX-59XXX",
    "auth": "*********WqLiS5ZM2****************************************9eib******",
    "notifications": [
      {
        "send_date": "now",
        "content": {
          "en": "Jones Residence Tue,17Jul 12:12 Test from Robbie......."
        },
        "link": "",
        "data": {
          "userID": "12345"
        },
        "wp_type": "",
        "wp_background": "",
        "wp_count": "",
        "ios_badges": 39,
        "ios_sound": "short-tone.caf",
        "devices": [
          "298eeXXXXa26849cc77da16adXXXXc1c801df12e79bad1e724829aXXXXcbe07d"  //I hashed real ID here
        ],
        "page_id": "0",
        "android_sound": "five_sectoneone"
      }
    ]
  }
}

Response is:

{
  "status_code": 200,
  "status_message": "OK",
  "response": {
    "Messages": [
      "D954-3C45B1AA-AA6293E5"
    ],
    "UnknownDevices": {
      "D954-3C45B1AA-AA6293E5": [
        "298eeXXXXa26849cc77da16adXXXXc1c801df12e79bad1e724829aXXXXcbe07d" //I hashed real ID here
      ]
    }
  }
}

alt text

asked 15 Jul '14, 06:58
MyAlarm's gravatar image

MyAlarm
112

edited 17 Jul '14, 09:37

Hello,

The "UnknownDevice" warning indicates that the push token that you have put in the "devices" section of the createMessage request isn't in our databases.

There are several reasons for that:

1) The application was deleted from the device.

2) The push token was renewed. APNs/GCM/etc. tends to change push tokens from time to time, and we remove outdated push tokens from our servers.

3) The least likely case - there is a misprint in your request.

Please note that in order to keep your userbase up-to-date you can use getUnregisteredDevices method, which would return a last thousand of removed push tokens:

{
  "request":{
    "auth": "API_access_token",
    "application":"Application_ID"
  }
}

Aside from that, we can export the list of your subscribers upon a request and send it to you. Please contact our Support team in case you would like us to do it.

permanent link
answered 18 Jul '14, 07:09
Dmitry%20%20Dyudeev's gravatar image

Dmitry Dyudeev
3.7k7

edited 18 Jul '14, 08:03

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×91
×18
×3

question asked: 15 Jul '14, 06:58

question was seen: 3,443 times

last updated: 18 Jul '14, 08:03