Send Custom Push Message

0 votes

Currently i see that there is no simple way to send custom push notification (I need to form json myself). Is there any ability to do this exists or it will be added in new sdk?

I need message like this:

{
    "aps" : {
        "alert" : "Username",
        "badge" : 9,
        "sound" : "default",
        "jidSender":"sender@jid"
    },
}

Currently the only way I can send message is :

pushnotificationService.sendPushMessageToUser(userName,message);  

asked Jun 4, 2014 in Discuss & suggest API by aputov (16 points)
edited Jun 4, 2014 by aputov

1 Answer

+1 vote
 
Best answer
Hi,

Thanks for your valuable feedback.

Right now you can do this in client side by just creating an function which take the input parameter and retun the message as string. Also we can take your request and add this function.

Thanks.
answered Jun 4, 2014 by hs00105 (517 points)
selected Jun 6, 2014 by aputov
so, for now there is no any opportunity to send custom json, right?
You can send your custom json what ever you need to create and send in message field. For more details how you can send custom json to device :
http://api.shephertz.com/tutorial/Push-Notification-Android/?index=pn-android
where you can see Sending Push to Segmented User or Sending Message to iOS Device with Sound and Badge in custom json.
Is this issue solved?? I need to send JSON from server made in java to iOS for Localizable strings.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...