Monday, February 17, 2014

How long connection message push


Want to implement a simple message push services, internal services available, the user does not exceed ten people do not know how to proceed:
1 with androidpn message push
Too complex, and the developers do not seem to update unreliable
2 frame with a smack
3 to achieve their own socket connection, the disadvantage is I do not know how to optimize android client saving
Just started android, we are how to achieve message push it?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Push Service can be considered an existing framework or push
Also no need to use socket. . . You can use the HTTP long connection
Reply:
cited a floor CuGBabyBeaR reply:
can consider the existing framework
push services or pushAlso no need to use socket. . . You can use the HTTP long connection

http long connection? Good idea to save a port, do not know how kind of performance, how to keep the mobile device is connected, you do not need to send heartbeat?
Reply:
Good idea to save a port, do not know how kind of performance, how to keep the mobile device is connected, you do not need to send a heartbeat!!!!!! /???????????
Reply:
reference to the second floor chifengxin reply:
http long connection? Good idea to save a port, do not know how kind of performance, how to keep the mobile device is connected, you do not need to send heartbeat?


Need heartbeat
Reply:
references, 4th Floor CuGBabyBeaR reply:
Quote: references to the second floor chifengxin reply:

http long connection? Good idea to save a port, do not know how kind of performance, how to keep the mobile device is connected, you do not need to send heartbeat?


Need heartbeat

This is to save resources! Landlord to try next! You can open paste ah
Reply:
With the Websocket
Reply:
There are no examples ready to learn?

No comments:

Post a Comment