简体   繁体   中英

Launching an iOS app on device reboot

I want to write an iOS sample application which can launch itself whenever device is rebooted. Please share your thoughts and any pointers will be really helpful.

Setting VOIP in background modes seems to be one option.

I am NOT looking for a Jail break solution.

There is a way if you have access to MDM tools or the Apple Configurator , and are able to control the device and its' profile. For example, if you are the curator at a museum or you or a teacher and hand out iPads to students, you'll most certainly have this level of control; and since you're writing a sample application, I suppose this level of control is possible as well.

There is a feature known as Single App Mode ( see page 17 ) that locks a device into a single app. According to the documentation, if the device is powered down, the specified app will launch at boot. (I don't have the setup to confirm this.)

Note that Single App Mode is not the same as guided access mode, though people do tend to get them confused.

So should you have access to the right tools your original intent may be possible.

To my knowledge, this is not possible. Your app does not have access to this level of system information.

What you could do is periodically send push-notifications with a payload that temporary allows you to access app functionality.

There is really not much you can do to achieve such functionality. The most you can do is to provide background fetching to prepare your app for when user launches it explicitly.

I have never seen a single app that could launch itself for no reason.

Hope this can be useful.

除非设备已越狱,否则无法完成,而我无法为您提供帮助。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM