This is the request JSON I'm using: (note it works on iOS)

     {
        request: {
          application: config.pushwoosh.app_id,
          auth: config.pushwoosh.api_token,
          notifications: [{
            send_date: "now",
            ignore_user_timezone: true,
            content: message,
            data: {
              leadId: hashedLeadId
            },
            platforms: [1, 3],
            apns_trim_content: 1,
            ios_badges: notificationCount,
            android_header: androidHeader,
            conditions: [
              ["userId", "EQ", User.idToHash(userId)]
            ]
          }]
        }
      }

Assume all of the parameters above exist and are correct--I have logged them all and they are correct.

The push notifications on Android show up without any content. On iOS they do have content.

Using the "Send Push" form does correctly show content on the Android device. Just remote api with this json body not working.

Any ideas?

asked 23 Jun '14, 02:24
clickinspire's gravatar image

clickinspire
113

edited 23 Jun '14, 02:26

http://www.pushwoosh.com/programming-push-notification/pushwoosh-push-notification-remote-api/#PushserviceAPI-Method-messages-create

Please check your data parameter


"data":{ // JSON string or JSON object 
     "custom": "json data" 
},

permanent link
answered 08 Jul '14, 11:31
XXXX's gravatar image

XXXX
2.2k6

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:

×446
×446
×83

question asked: 23 Jun '14, 02:24

question was seen: 1,055 times

last updated: 08 Jul '14, 11:31