views:

42

answers:

4

HI

I want to run my code on web server , which will track any iphones physical location (using mobile number of card inside iphone) .

How can I do that , Is coreLocation gives that facility ?

thank you.

A: 

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.

Daniel A. White
A: 

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.

ivy
A: 

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.

George
A: 

Hi Daniel , George

My requirement is to track iphones physical location continously.

If I have to push current location information from iphone to web server , then I should have a client program continously running on iphone. As Iphone does not allow third party application to run in background I can not do that.

What can be the solution. Thanks for u replies.

iphdeveloper