开发者

iPhone App can autolaunch after device boot?

Saw an app called PhoneRecover on the AppStore.

They advertise the following:

  • PhoneRecover will automatically restart after a reboot on the iPhone 3GS and the iPhone 4 running iOS4.

How is 开发者_StackOverflow社区this possible? What APIs are used to auto-launch an app after a boot?


It's built into multi-tasking. "Backgrounded" apps are still in background after a reboot. Presumably the app does some work to re-instantiate itself and get its state going again the first time Core Location hits it in the background, but there's no other magic happening here. Any background-aware app will survive a reboot in a backgrounded state.


I wouldn't count on this. I was running MotionX GPS and let the battery run completely dead. Upon restart MotionX was no longer running, broadcasting my position or tracking my position. The broadcast option is persistent too (survives app restart).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜