开发者

Android location aware chat application

开发者 https://www.devze.com 2023-03-05 15:25 出处:网络
I need help with this kind of ap开发者_如何学Pythonplication.I don\'t know how will two devices communicate over internet. I think I should create database to store users information, and then create

I need help with this kind of ap开发者_如何学Pythonplication.I don't know how will two devices communicate over internet. I think I should create database to store users information, and then create sockets for communication. Is there a better way to do this?


  1. Most mobile networks use some form of NAT, so inbound connections to mobile devices are not possible. You'll need an intermediate server. P2P is possible, but to setup a connection you still need a server.

  2. Don't reinvent the wheel: there is already a lot of servers/libraries/protocols that do chat. Just pick one. Most notable one is XMPP, with open protocol, multiple free OSS server implementations and libraries (including Android).

  3. Additionally you can create your own server app, that does login/authentication and location-aware stuff. Once two users are authenticated and location-paired, you can hand-off the chat part to XMPP server.

0

精彩评论

暂无评论...
验证码 换一张
取 消