Hello,
i created server side and client side.
my server app is working find and sending messages but i got class cast exception in client app.
i develop client side push app using http push demo.
I have registered with rim server to receive push messages from server side. For that I got application id.
I create url by appending app id, device info & device name then open connection to that url after which my code can listen to messages
I spread a lot of time on it . Finally i find conclusion that httppushdemo isnt correctly creating connection to the url
In push demo it creates connection in this way:
_notify = (StreamConnectionNotifier)Connector.open(URL + ";deviceside=false");
but StreamConnectionNotifier is used for socket protocol like socket://abc.com
but what we should do to open http url like:
http://abc.com
above code throws class cast exception if i try to open http url in this way
this is major issue and i havent found any solution after a lot of search. if any one have worked on push application then how should i open http url if we are bound to use ServerSocketConnection due to push demo app ?