Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ashwinr87

macrumors member
Original poster
Mar 9, 2011
81
0
Hi,

Since my app would be dealing with sensitive data of the user, I would like to know if there is a way I can check from my app whether there is a Passcode Lock set for the Ipad.

The reason I need to check this is because say if the user has in the app some information and then keeps it on the table and goes out for a couple of minutes. The ipad/iphone by default, goes to standby mode. If a passcode lock had been set, only when the correct passcode is entered, would anyone be able to use the ipad. This would provide an additional security measure to prevent any passerby to view the sensitive data from the app.

So basically, I would like my app to check whether the passcode lock is set and if not prompt the user to do it.
Is this possible and if so, would any one be able to point me in the right direction?
 

jnoxx

macrumors 65816
Dec 29, 2010
1,343
0
Aartselaar // Antwerp // Belgium
Not if your app is not for Cydia. (jailbroken devices). Because with your own app, you cannot go outside of your sandbox, so you can't check wether the device is locked/passcode etc.
What u could do, is when your app has been minimalised, or after a certain time (NSTimer), create your own passlock ;)
Or create a singleton user, and delete it if your minimilised or logged out or whatever. and based upon that u can check wether to show info or not.

Good luck.
 

ashwinr87

macrumors member
Original poster
Mar 9, 2011
81
0
thanks for the reply...
I will check it out...

Not if your app is not for Cydia. (jailbroken devices). Because with your own app, you cannot go outside of your sandbox, so you can't check wether the device is locked/passcode etc.
What u could do, is when your app has been minimalised, or after a certain time (NSTimer), create your own passlock ;)
Or create a singleton user, and delete it if your minimilised or logged out or whatever. and based upon that u can check wether to show info or not.

Good luck.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.