mpusher / mpush-android Goto Github PK
View Code? Open in Web Editor NEWmpush android sdk and demo
License: Apache License 2.0
mpush android sdk and demo
License: Apache License 2.0
android端是否支持发送文件,语音,视频,位置。客户端使用http代理的方式发送消息,消息体的大小有没有限制?
刚刚开始demo 运行在谷歌的 7.1系统上出现了闪退,后面我给了权限,没问题,但是启动推送后,没有出现握手成功等提示, 发送推送给自己也收不到
运行在其他的手机上 完全没有任何问题
W/MPUSH: get server address failure statusCode=400
运行com.mpush.test.client.ConnClientTestMain.java 模拟一个客户端可以推送成功.
PushResult{resultCode=success, userId='user-0', timeLine=[begin, 1490052606543, lookup-remote, 1490052606543, check-gateway-conn, 1490052606543, send-to-gateway-begin, 1490052606546, send-to-gateway-end, 1490052606561, push-center-begin, 1490052606562, before-send, 1490052606562, waiting-ack, 1490052606563, success-end, 1490052606564, end, 1490052606581], ClientLocation{host='192.168.1.5:3001', osName='android', clientVersion='1.0.0', deviceId='test-device-id-0', connId='6356a5e2'}}
但是同局域网 ip 为 192.168.1.3 的 android 手机连接不成功, android 客户端输入的 ip 为 http://192.168.1.5:3000,提示
推送返回
PushResult{resultCode=offline, userId='user-1', timeLine=[begin, 1490052752813, lookup-remote, 1490052752813, end, 1490052752814], ClientLocation{host='172.17.0.1:3001', osName='android', clientVersion='1.0.1', deviceId='test-device-id-1', connId='null'}}
其中 172.17.0.1 是本机的 docker0.
本机局域网 ip 是 192.168.1.5
把 docker 卸载后推送返回
PushResult{resultCode=offline, userId='user-1', timeLine=[end, 1490053683956], null}
退出应用后服务还是起不来的
需要停止推送发现会自动重连。有的时候确实要彻底停止
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.