how can I build and iphone app which tracks a users location uploads the coordinates - iphone

I am writing an app for iphone to go along site my website which tracks the location of the user. Can anyone give me any pointers on where to begin. I am very good with mysql and php etc but I am a novice with iphone apps.
The coordinates from the app need to be able to upload to my api which I have set up.
Thanks

What you probably want to do is create a simple app that can run in the background.
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html
During background execution you cannot do anything really too much with the network so I suggest logging it using CoreData and then on resume/startup to send an HTTP post to a PHP page that logs it into your DB?

You might want to check out the HTML5 geolocation API. Also reading "Building iPhone Apps with HTML, CSS, and JavaScript" is recommended. I read the same book for Android and was very pleased. Building your app in HTML5/CSS/JS will also mean that it will probably work on other platforms.

Related

iPhone: Access Camera and Album from Web app

I want to develop a web app using html5, js. One of the feature is to launch device Camera and record video, take a picture and access photo album. Is it possible to access via web app if i develop? I saw in the forums that, it is saying not possible in some places and it is possible in some places. I would like to know, is it really possible to access directly camera and album etc. ?
Please suggest!
Thank you!
It's not possible to access phone camera using Web app, as the "Web APP" typically runs in the browser of device.
Though there are some frameworks (like Phonegap) allows you to embedd your web app into native container. With this approach and added libraries from such framework you can access some of those native API's and Device Hardware.
One Possible solution is,
Create one app and distribute it using app store
using your webapp, you can connect to above app using url-scheme
http://code.google.com/p/iphone-photo-picker/
go to above link, where you can find complete code for it.

Icons of running application in iOS

I'm learning iOS programming. I was wondering if there is any way to show the icons of all the running apps in the phone. I know how to get a list of apps that are running currently, but is it possible to access their icons?
If not, what is the best way to do this? Crawl the appstore for icons and store it in the app?
As far as I know there is no API for getting the current running apps in iOS (but there is something like this for Android).
If you want to show only the currently running app icons, how will crawling appstore help?
If you cannot do it directly through some API trickery, how about a sideways workaround? If you know the names of the apps that are running, you could build a process that grabs the app icons through the iTunes Store Search API (using NSData's initWithContentsOfURL: method (docs), or with NSURLConnection and its delegates).
It might be a bit convoluted, but is probably the most straightforward way of getting the icon of any app that might be running.
I have tried to grab app icons using the API and I make it!
Take an example of app yelp, the premise is you get the buddleid of this app, which you can refer to Finding list of installed apps on iphone
And https://itunes.apple.com/lookup?bundleId=com.yelp.yelpiphone
helps to get the information in the form of json. Use the value for key "artworkUrl60" to get the icon of yelp

How to create an iPhone app that interacts with my website?

What I want to do is to make an iPhone application for my website similar to the photofunia. The users will be able to select an effect from a list, and then upload their own photo. Then the result will be shown in the browser where the user can save the image and/or publish to website like facebook, etc.
What software can I use to do that? Phonegap, appcelerator, etc? Can some of these help?
Thanks.
First of all, you may be able to make an iPhone app using Adobe Flash and the Adobe Packager for iPhone.
The other option is to get a Mac and Learn Objective-C.
There is no "easy" solution here.
Create a webservice for your website and try to use that in your iPhone Application
Of course I know there is no "easy" solution, but I'm almost sure there are other options for making iphone apps, instead of using Objective-C.
I only don't know the name of the tools.
Flash doesn't works. Adobe Air currently doesn't offer a way to access the camera roll on the ios.

Possible to use Buddypress within an iPhone app?

I want to create a community for my venture and also an iphone application for the same. I am thinking of using Buddypress for the community.
But is it possible to use buddypress with an iPhone app? I'd like that when user posts a message via the iPhone app, it is also posted on buddypress? Or do I have to write custom scripts for editing the buddypress db according to user actions in the iPhone app?
Thanks.
I remember reading about a plugin for BuddyPress, called BPDEV XMLRPC that allows you to communicate with BuddyPress via XMLRPC. I'm not sure if it's out of the development trunk yet, but it seems like you could use that to post messages to BuddyPress from an iPhone app. bp-dev.org seems to be down at the moment, but I read about it there.
It's entirely possible to do -- but will require some heavy development work. Would have to modify heavily a child theme and do lots of stuff to make it work. Let me know if you find anything that works.

iPhone app that access the Core Location framework over web

I was wondering if I could access the iPhones Core Location framework over a website?
My goal is to build a webapp/website that the iPhone would browse to, then upload its current GPS location. This would be a simple site primary for friends/family so we could locate each other. I can have them manually enter lng/lat but its not the easiest thing to find. If the iPhone could display or upload this automatically it would be great.
I don't own a Mac yet (waiting for the new Mac Book Pro) but would like something a little more automatic right now. Once I have the mac I could download the SDK and build a better version later. For now a webapp version would be great if possible. Thanks.
Why not simply use W3C GeoLocation API available in mobile Safari? This will work on ipod touch as well (suburb precision).
It's literally 10 lines of code and the javascript will work without change on Firefox 3.5. Far easier than scrape some third party website.
http://www.instamapper.com/iphone
iPhone App store
While this may not directly answer your question, there are quite a few iPhone apps that already do this kind of thing with GPS. Instamapper is the first one I pulled up from the app store, but I'm sure you could find something to fit your needs.
I'm pretty sure you can't do what you want directly.
The best idea I can come up with is to "reuse" an iPhone app that records location and makes it accessible on the web. Take Twitter for example. If I'm not mistaken, Tapulous' app Twinkle will grab your location and post it to your Twitter.com user profile. Here's an example of what that looks like:
From your webapp, you could then scrape the user page for each person whose location you're interested in. It's a pain in the butt, but like I said, this is the best I could come up with.
Again, if you don't want to mess with Twitter, there may be other apps out there that do this as well, but I don't personally know of any. Good luck.
We built a really thin iphone client app that simply calls a predefined .js file on our site. Works like a charm.
See arisgames.org for the project.