iphoneios4mdmscreen-lock

Iphone Screen Lock


I'm not too familiar with Iphone development, but I am trying to create an App that can lock the screen and prevent the user from using the phone under certain conditions.

I have been told before that it is impossible for this type of functionality to exist in an Iphone, but I know there is an app called Cell Control that does something similar. I am trying to figure out how to create this type of functionality.

My research has led me to MDM solutions that was introduced in IOS4. This link was very helpful: http://flicksoftware.com/2010/08/mobile-it-guide-to-iphone-deployment-and-management-with-apples-ios-4/

My question is how would one go about implementing a lock screen functionality in an Iphone app. Is it using some implementation of the MDM solution, or doing something else entirely?


Solution

  • Combining Albert and Noah answers and adding some more details.

    1) iOS public API doesn't have anything which will allow you to do that. You can use private api's to do that. However, you won't be able to distribute such application through AppSotre. Also, you have ability to sign it with enterprise certificate and distribute it in your compan.

    Also, you can provide such functionality on jailbroken iOS device and sell it through Cydia.

    2) Noah correctly pointed out that you can use guided mode to prevent iOS device from switching to another apps. However, there are gotchas. iOS device can be managed only by one MDM server. So, a device will have to be managed by your MDM server (and it won't work if a user has 3rd party MDM installed on your device).

    There are couple of open source MDM server (which are good start to look into it):