简体   繁体   English

Android分享位置(如whatsapp)

[英]Android Share location like whatsapp

I have searched for this more than 4 hours but did not find anything useful, I need to add to my android app the ability for the user to send location, just like whatsapp or something similar. 我已经搜索了4个多小时,但没有找到任何有用的信息,我需要在Android应用中添加用户发送位置信息的功能,就像whatsapp或类似功能一样。

thanks 谢谢

You can use for example Firebase Database to store the user locations on remote server. 您可以使用例如Firebase数据库将用户位置存储在远程服务器上。

The flow can be like this: 流程可以像这样:

  • get the user location 获取用户位置
  • send your location via FirebaseDatabase 通过FirebaseDatabase发送您的位置
  • get the location of the another user/users via FirebaseDatabase 通过FirebaseDatabase获取另一个用户的位置

https://firebase.google.com/docs/database/ https://firebase.google.com/docs/database/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM