Robin Thuran Malhotra
Robin Thuran Malhotra

Reputation: 594

iBeacon with database calls in the background?

I'm making an iBeacon based app for a shopping mall with notifications based specifically on which store is nearby. My question is, with background tasks in iOS 7.1 and above, can I run database calls(to reference location on the basis of the closest beacon). What about network calls(like a PFQuery?).

Upvotes: 0

Views: 114

Answers (1)

davidgyoung
davidgyoung

Reputation: 65025

Yes, you can do anything you want on iBeacon detection in the background including database access and web service calls. I have developed apps doing both of these things. The only trick is that iOS only gives your app 5-10 seconds of running time after the detection takes place, so you must make these operations relatively fast.

Upvotes: 1

Related Questions