Dear All

your support please with my issus , i am developing with JQuery mobile and Cordova

i am using the pushwoosh default soune when i send the request via createMessage API contol

i tried to use my one sound and not working , i created a folder res/raw and put the sound inside and and in the main bundle also for ios

then i used the (without extension)

            "android_sound" : "soundfile", // Optional. No file extension

and for ios (with extension)

            "ios_sound": "sound file.wav",    // Optional. Sound file name in the main bundle of application

and still not receving anything !!

i changed the option in android javascript (PushwooshAndroid.js)

pushNotification.setSoundType(1);

i put 2 and same problem

what is the wrong with my code ???

asked 21 Apr '16, 22:41
int3rnet's gravatar image

int3rnet
112

note

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

    $.ajax({
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
           token
        ],

            "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); });

permanent link
answered 21 Apr '16, 22:45
int3rnet's gravatar image

int3rnet
112

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
×326
×20

question asked: 21 Apr '16, 22:41

question was seen: 717 times

last updated: 21 Apr '16, 22:45