pushwoosh API cordova with sound


1 comment

  • Avatar


    this is the API that i used to send the pushwoosh notifiction

    type: "POST",
    url: "https://cp.pushwoosh.com/json/1.3/createMessage",
    data: JSON.stringify({
        "request": {
            "application": "C1CA3-66CF4",
            "auth": "xxxxxxx",
            "notifications": [{
                "send_date": "now",
                "ignore_user_timezone": true,
                "devices":[              // Optional. Not more than 1000 tokens in an array. If set, message will only be delivered to the devices in the list. Ignored if the applications group is used. Only lower case for iOS
                "content": "you have new request with id : "+order_id+" , please accept or reject",
                "android_vibration": true,
                "android_priority":2 ,
                "ios_sound": "raw.wav", 
                "android_sound" : "raw"
    dataType: "json"

    }).done(function(data) { console.log(data); });

Please sign in to leave a comment.