Yahya
Posts: 0
Joined: Tue Nov 11, 2014 1:08 pm

The payload structue

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

The payload structue

Hello,

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

Yahya
Posts: 0
Joined: Tue Nov 11, 2014 1:08 pm

The payload structue

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

The payload structue

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...

Return to “Issues”