Sending Data To Server While App is Running in Background in iOS 7

Viewed 4547

I wish to send a little data (location Co-ordinates) to my server from the application which is running in background in iOS 7. I am using NSURLSessions for this purpose.
I am confused regarding the type of session I should use for this purpose :
Default Session: Can we create and use default sessions in background. If yes can it handle the network failures gracefully.
Background Session: Can I upload data as NSData object using background session.

PS: Some code will be really appreciated dealing with network failure in both cases.

1 Answers
Related