I'm trying to do an app which runs when user unlock(Slide to unlock) their device. I don't know anything how to approach for this app. P开发者_开发技巧lease any one could help me?
Thank you so much!!
Without jailbreaking there is no official way to get this kind of behavior. The user has to launch the application to start the application. The best you can do is try to keep your application alive in the background by playing a silent sound (wastes battery) or setting a timeout which I believe Apple currently limits to 10 minutes.
The Answer to your question is really is. If you want your app on the AppStore, there's no way. On an iPhone the user always decides when an app runs. Sorry you can't these things.
Of course there are possibilites but you need to jailbreak your iPhone. And with this way, your application will not be accepted on the AppStore.
Sandro Meier
May be you should read App Store Review Guidelines and you will have your answer.
精彩评论