iphone - Best way to receive new messages in a IM style app -
at moment querying server every 3 seconds see if there new messages using nsurlrequest , such. if there saves them database , sends nsnotificationcenter notification if there aren't waits 3 seconds , tries again.
is best way it? realise (form posts on here , information elsewhere) opening persistant connection server tedius , not reccommended, best way it?
my main worry if there no new messages downloading empty (of information, still few bytes big) xml feed, , running every 3 seconds going add , use lot of data.
any pointers appreciated.
thanks
xmpp long-living tcp connection. how using xmpp service?
Comments
Post a Comment