0

I have a requirement to develop an app that is capable of receiving pushed information from a server - which as its not possible to intercept SMSs or apple push notifications would probably have to be implemented as a poll and see what's there or similar type of thing. However of course such a thing isn't possible if the app isn't executing in the background.

The app couldn't be considered to be musical or voip related, however its possible that it could be considered to be gps related as the pushed information would be displayed to the user based on certain triggers, and one of those triggers could be location.

Would this app with a UIBackgroundMode of gps submitted to the app store stand a good chance of being accepted?

Gruntcakes
  • 37,738
  • 44
  • 184
  • 378

2 Answers2

0

You don't have to use a hack for your requirements.

iOS provides a facility whereas your application is suspended but your socket is still monitored. If there's any incoming traffic on the socket, the app is woken up and handed back the control of the socket.

Advanced App Tricks

Look under the heading, "Tips for Developing a VoIP App"

Sanjay Chaudhry
  • 3,181
  • 1
  • 22
  • 31
  • Thanks for that link. However my application is not, and could not be considered an VoIP app, therefore I would be concerned if it had a UIBackgroundMode of VoIP, but wasn't actually a real VoiP app it would be rejected. Can you or anybody comment on this? – Gruntcakes Nov 30 '11 at 18:40
0

i have been trying to do the same thing and here is what i found iPhone - Backgrounding to poll for events (top answer: update 2) shows a method that should be ok, meaning your app wont be rejected for using it. the guy who posted it said it should be ok and i have asked other members who said the same (i have not verified this myself). here is my implementation of that post local notifications?

Community
  • 1
  • 1
owen gerig
  • 6,165
  • 6
  • 52
  • 91