How to create kiosk-mode iPhone app?

北城以北 提交于 2019-12-06 08:55:19

问题


I'd like to run an app in the KIOSK mode, so that it

  1. auto-starts after starting the device
  2. re-starts after app crash/power loss/etc.

Any ideas how to do this on a [probably jailbroken?] iPhone?


回答1:


The easiest method would be to create a mobilesubstrate extension that runs inside SpringBoard and throws up its own UIWindow.

Create a static __attribute__((constructor)) function and inside register for UIApplicationDidFinishLaunchingNotification. After receiving the notification, 99% of the standard iPhone SDK will work as-is.




回答2:


It will have to be jailbroken because the standard OS won't give you that level of control.




回答3:


Since you are already thinking jailbreak, perhaps look into launchd on the phone as whatever starts up Springboard could also probably be made to start up your app after.



来源:https://stackoverflow.com/questions/2166656/how-to-create-kiosk-mode-iphone-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!