手机启动时自动加载iphone应用 [英] Load the iphone app automatically when phone boots

查看:185
本文介绍了手机启动时自动加载iphone应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为组织内部使用进行跟踪的应用程序,并且不希望将其提交到应用程序商店.

I am doing a tracking kind of application for internal use of an organization and do not wish to submit it to app store.

我在应用程序中所做的就是跟踪电话,消息等.

一旦我手动启动该应用程序,我的应用程序就会在后台运行,并一直在后台运行,直到我关闭该应用程序或关闭手机.

My app runs in background once I start the app manually and keeps on running in the background until I close the app or the phone is switched off.

我想添加到我的应用程序中的是,我想在再次打开电话时自动加载应用程序.

The thing that I want to add to my app is, I want to load the app automatically when the phone is switched on again.

任何想法或指导都会有所帮助. 也欢迎使用私有api的建议.

Any idea or guidance will help. Suggestion for use of private apis is also welcome.

推荐答案

在私有api的文件SBApplication.h中,您需要所有方法.

In private api, in file SBApplication.h there are all methods that you need.

尤其是:

[...]
-(BOOL) _shouldAutoLaunchOnBoot:(BOOL)boot;
-(void) autoLaunchIfNecessaryOnBoot:(BOOL)boot;
-(void) _cancelAutoRelaunch;
-(void) _relaunchAfterExit;
[...]

等,等等...

希望这会有所帮助.

这篇关于手机启动时自动加载iphone应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆