Page 1 of 1

The payload structue

Posted: Thu May 03, 2018 8:20 am
by Yahya

Good day
First,
I would like to thank all of you for the great support and help you provide for all your users.
Second,
My issue is the following :
When sending push notification from javascript specially when specifying the custom sound path.. please see my code and I hope you give me direct answer :

sendpush.execute ({
payload : {
title : "hi",
message: "hi all",
"android":{
sound : "mysound.wav",
},
"ios":{
sound : "www/mysound.wav"
},
"status" : "sent"
}

})

please note my issue is only with custom sound for the android and ios.


The payload structue

Posted: Thu May 03, 2018 10:03 am
by Serhii Kulibaba

Hello,

Could you please clarify what exactly does not work there? Do you get the correct notification, but with the default sound?


The payload structue

Posted: Thu May 03, 2018 10:14 am
by Yahya

Yes exactly, I got the push work but withe default sound.


The payload structue

Posted: Thu May 03, 2018 12:36 pm
by Serhii Kulibaba

Do you use the Server Code there to process the request, or send it to "https://api.appery.io/rest/push/msg" directly?

Please see here our old (but still working) documentation how that request should look like: https://devcenter2.appery.io/document...