09-10-2013 12:33 PM
I don't understand this:
"The background process is indeed invoked immediately, but as far as i can tell, its main()...."
There should only be one main(). This main should invoke either your background task or your foreground task depending on the args.
Can you describe what you mean by "its main"?
09-11-2013 03:37 AM
09-11-2013 04:06 AM
I have tried to create a little test for this and think I see the same - on OTA install, the main method was not invoked to start the background process.
I was testing on OS 7. What versions have you been testing on?
09-11-2013 05:02 AM
Sorry I don't have a lot of time to test this. I really should run my test app in a few more devices and see if I can establish some consistency, but that won't happen quickly. My impression is OS bug, as it should run the background first. My only suggestion is to code some workaround, like checking to see if the background app is present and if not launching it.
09-12-2013 06:09 AM