iphone friends location app - iphone

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.

Related

Get data from all app's notification in IOS

I would like to develop an IOS app to get notification such as title and body from all applications in iPhone. Is it possible to do that?
No it is not. On Android, yes this is possible. But not on Apple. They restrict permissions so that you cannot access that information as a developer.
Every application is given a sandbox, a directory it can use to store data in. If the application needs access to data on the device that isn't located in the application's sandbox, it needs to request the data through a system interface.
App can only read their notifications, other things are possible with Jailbreak.
Learn about app sandbox here

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.

Can the Facebook API give location of user on mobile device?

I've found that it's easy to obtain 'current location' of Facebook users based on what they manually enter in on their profile. However, I'm curious if a Facebook user logs into my app with their FB log-in, can I get their location data as they go from one place to the next? For example, my app recommends the user go to a certain location. I want to know if that user actually goes to that location. I don't need to know their location down to the minute, just periodically where they end up, maybe every half hour or hour.
No, this is not possible via the Graph API or SDK. You could track the GPS location via the device's sensor data if you're creating an own app for iOS or Android for example.

Sharing data between device in same app iPhone

I am planning on making an app on iPhone.
Users can take a photo inApp or upload photos from their photo library(photo stream). Once this is done, anyone else with the app should be able to see these photos IN THE APP. What is the best way to approach this? Do i require a server or is there another way to save photos. Do I have to use iCloud for this? I am under the impression that iCloud is for a single user and not to share information as a server. Should I change this impression of mine?
Thanks!
You'd need to save the photos to a server somewhere. Whenever the app runs on a given device, it'll need to check with the server to see if there are new photos to display.
Your impression of iCloud is correct -- it's for syncing data between a single user's devices, not for sharing data between many users.

Is it possible to find location by iPhone device ID?

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.