I done integrating pushwoosh according to pushwoosh guide to my Android app but I need to customize the data comes from the notification. I've paid for custom data and i'm sending a json like this
{"category":"Iraq","id":"1000"}
so when the application get the notification can do an event according to this custom data from pushwoosh.
How to do that ?
Take a look on the Android sample:
https://github.com/Pushwoosh/pushwoosh-sdk-samples/blob/master/Native/Android/src/com/pushwoosh/test/tags/sample/app/MainActivity.java
public void doOnMessageReceive(String message)
JSONObject customJson = new JSONObject(messageJson.getString("u"));
The custom data will be under "u" parameter in the push payload.