开发者

From web server, how I can get the exact GPS location of an iPhone?

I want to run my code on web server which will track an iPhone's physical location (using mobile number of card inside iPhone).

How can I do that? Is coreLocation t开发者_运维知识库he API that gives that facility?


Your app will have to use CoreLocation to push requests to your web server with the location. The web server cannot pull the location. I do not think you can access the phone number, but you can get the Device ID.


You can get the phone's location in the browser using javascript, please see the answer at question 10567617 .

If you have the location in the browser, you could send it to your server with ajax or any traditional technique.


If you mean, through a regular web request across HTTP, you can't -- that information isn't transmitted for good reasons. However, if you were to create an App that connected to your server's app, then yes, you could simply send the update as a packet to the server as you then have unlimited access to your phones details.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜