java - Using Smack API for Instant Messaging in Android -
i want make instant messaging app android. have option of using gcm, not want use since there may other platforms may communicating (web, other mobile platforms etc) app.
so, instead of using gcm , want use smack api (an xmpp library written in java), uses sockets.
now, have few doubts it:
- how smack handles connection drops/reconnects etc. 'simple' gcm? in case of internet loss, automatically reconnect when available
- is battery efficient ? since listening own socket, know if there massive battery drain or not (it should listening messages 24/7 background service, , not while user in app)
aside of these concerns, know if there other (better) ways have instant messaging. cannot sockets scratch, , multiple platforms (thats not fan of gcm)
Comments
Post a Comment