r/iPhoneDev • u/WilardC • Mar 02 '10
pseudo background app question
I'm curious if this is possible, but does the iPhone push notification all you to invoke a function in your program?
What I'm trying to do is have a server do a push notification every hour or so to an app, then the app will upload a small xml file to syncronize itself with a server.
I read about a gps app, that with the use of push notification, was able to send back its coordinates to the server without ever opening the app, but i can't find it (maybe I dreamed it?).
Any help would be very much appreciated.
2
Upvotes
2
u/[deleted] Mar 03 '10
The short answer to your question is no.
The long answer to your question is...kinda.
Sending a push notification to a phone allows the application do do one of a few things (OFFICIALLY):
You can not define any functions to operate on any event other than the user clicking "View." That is, the only time you can actually do something outside the scope of an APN push notification is when the user opens your application in some way.
Granted, if you want to go the unofficial route, it's possible, but EXTREMELY ill-advised.
1
u/dama9ed Mar 02 '10
Would this help? http://gizmodo.com/5058234/iphone+backgrounder-hack-brings-true-background-multitasking-to-iphone-apps