Is it possible to find location by iPhone device ID? - iphone

I wanted to know, is it posisble to get location(latitude, longitude) by device ID on iPhone? for example, if i want to make an iPhone app that finds friends with in university campus, I have my friend's device IDs but not their location. Is it really possible? I am sorry for my ignorance but please guide me.
Thanks,
Regards,
Ainee

No, you can't obtain the location of your friends' iPhones with any standard iOS API. To do something like that, you should have a server component as well, and have you app report the location to it. Then you should be able to query the server about the location of any user that is running the app.

Related

iPhone location service - how to get data?

Is it possible to get location of iPhone that has location services on, when I don't know user login data without installing anything on device?
No and Yes, You can use HTLM 5 location API in a website. But you will not be able to request iPhones location like with find your friend app.
Since you need to have your own backend to store to locations you will need have an app which will track the location and passes it to the backend.

iPhone app - keeps track of the number of sms sent from the app user's phone

I am looking to develop an iPhone app which keeps track of the number of sms sent from the app user's phone. So, is that possible for me to fetch the number of sms's sent from user's iPhone and to show in the app which I am gonna develop?
I guess, its tricky for you. But, if you know anything abt this, kindly let me know too.
Your response will be helpful for me.
Thanks in advance. Take care.
Without jail breaking the device, you cannot retrieve this information.

How to identify user across devices on iOS?

I am working on an app where user will be buying some "credits" as in-app purchases and use them to buy some services inside the app. As user can has more then one device I need to identify him across different devices.
I understand I can create some logging (and store user accounts on my own server) but I would like to avoid this. In best case I would like to use Apple ID but I can't figure out how can I access Apple ID inside an app?
I found similar questions here but no satisfying answer. I do not believe there is no chance to access Apple ID from the app (I don't need password, just the id) as I found something like AVMetadataiTunesMetadataKeyAppleID in AVFoundation but this framework seems to be only for Mac OS X.
Any suggestion how to solve this?
Sorry. There's no way to do it without implementing your own authentication system on your own server. UDIDs are unique to each device and Apple does not give access to the iTunes user account whatsoever.
Other way is you can use facebook authentication in order to achieve that. Just connect you app with facebook api and u can keep their login address with some additional info.
Furthermore, it might be useful for your app if they can share your app with their facebook friends :p
You can identify user with help of GameKit.

iphone friends location app

What kind of api does SDK provide if we are to develop an app which keeps tracks of friends location?
Update:
CoreLocation gets the device location with the app running. But how to get the friends location data if you have their phone number.
Does anyone have idea to get the location data of friends using iphone sdk
I'm guessing you mean something like Core Location framework? This still would only be able to track the device location with the app running. You would have to pass your friends location data to a server and fetch it from there to be able to track them on any device.
http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CoreLocation_Framework/index.html
I would be surprised if Apple let any old app communicate with another iPhone to determine that iPhone's location. You'll probably have to maintain a database of locations that syncs with your app from time to time. Anyone using that app will then be able to access their friends' locations.

can a webpage on a mobile browser ask/get users location from the phone?

Is there any way that a webpage can make a request for the users location from the android / iphone device ?
Since all I need is the users location, I am trying to figure out if there is anyway I can bypass developing a native app and use some nifty html5 call to just get the users location so all a user would need to do is visit my webpage and provide permission to access his/her location?
Yes. Webkit browsers on Android and Iphone support geolocation. The Google maps api has some great info on it.
Have a look at the Google Maps API (http://code.google.com/apis/maps/documentation/javascript/introduction.html), particularly the sensor parameter...may give you want you need.