Get android GPS location in my web appliaction

2019-08-18 19:29发布

I have web application developed using java spring technology. Now I want to extend it to android devices which requires me to get the current location of the android devices. Can someone guide me on how to go forward on this?

As per my understanding the web application will have to send a notification to the android and then the android client will have to send a message to the web application with the lat and long information.

But how do I send notification to the android client here?

1条回答
等我变得足够好
2楼-- · 2019-08-18 19:34

You may use Android Cloud to Device Messaging Framework to send the request from server to android phone. Check this link as well. Also, the answers to following questions may be helpful you: Two way communication between android and Server and Android: How to periodically send location to a server.

查看更多
登录 后发表回答