by HouBin506

HouBin506 / SocketPushClient


125 Stars 45 Forks Last release: Not found 2 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


最近项目中要求做推送,基于内网的。由于工期不是很紧,需求不是很严格,所以放弃了使用三方的推送框架, 基于Socket自己写了消息推送功能(服务端+android端)。 服务器端使用java,客户端使用Android。本人是做Android开发的,所以demo重点介绍客户端的一些代码, 包括Socket的TCP长连接及发消息,Service如何不被轻易杀死,通过aidl实现界面实时与Service的通信, 可以在界面上控制Socket的连接与断开以及发消息,并采用了Parcelable对象实现aidl传参

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.