Today I was freaking out, I just started this app and it required the ability to track geolocations, obviously this would need to work in the background if the user got a call, or wanted to do another task on their phone. I searched the web and saw many responses saying it wasn’t possible, but it is!
Go to the “Resources” folder in your XCode project, click on the file that is called “yourprojectname-Info.plist” (this file may be located elsewhere in other versions of PhoneGap). Click the plus next to “Information Property List”. Type in the new field “Required background modes”, click the arrow located next to the new row and in the value for “Item 0″ type “App registers for location updates”.
That should do the trick.