07-22-2013 03:02 AM
Kinldy tell me that how can i add the Custom Headers in Blackberry Push Message besides "text/plain", Blackberry Push Messages are working perfectly but i have to add the custom headers to get some content info.
I have tried by adding headers in Content class at Push Initiator end but unable to receive in Connection object at client side in Parse(PushInputStream pis, Connection conn), So please let me know that how to do it.
Solved! Go to Solution.
07-29-2013 04:25 AM
I have tried it through getContent.addheaders() but not able to receive at the destination end, So is there a proper way to add headers?
07-29-2013 08:54 AM
In-fact i am working on IM Applicaiton, therefore i have to perform different actions on different types of messages, just as "Push-Message-ID" has received in Connection object header, i want to add message ID's also in headers so that i can get the message iD's same as i get "Push-Message-ID".
07-29-2013 08:56 AM
Add any data you need the client to receive to the payload in a mnner that can be parsed. Only the data in the payload section of the push message will be delivered to the client app (apart from the push message ID).
07-30-2013 01:17 AM
therefore i am receving Data at client end by getting type "text" and then parse the Push Input Stream, and from server end i am sending the message with message ID's which are '||' seperated such as:
messageID=101||message=This is a text message
This works fine for me but i just want to send message ID through differnet place, so that i can able to parse at client end.
07-30-2013 06:52 AM
The payload is the only place you have control to set data, the rest is all based on standards and cannot be customized.