0

I was hoping to create an app that could automatically enable the Passcode lock under certain conditions.

From searching around it sounds like this may not be possible, though I never came upon a remark about "programmatically influencing Passcode" explicitly.

Could someone please confirm if this is impossible or point me in the right direction for how this might be done if it is indeed possible?

Thanks!

1
  • 1
    I don't know the way to cause the phone to lock, but there are a lot of pin code view controller implementations which gives your application pin lock protection. Commented Nov 25, 2011 at 18:25

1 Answer 1

2

This isn't possible I'm afraid. I think the main concern is some malicious app could trigger the lock, without informing the user. Effectively locking them out. There might be a way to open a URL to the settings app to display the settings for pascode locking however.

Sign up to request clarification or add additional context in comments.

6 Comments

I agree it's probably not possible - but I'm not sure about the "malicious app" part... wouldn't be very malicious. The user should know their own passcode, right? Plus the apps have to get reviewed by Apple... so it shouldn't even make it into the app store. Even if the app perpetually triggered the lock, and got past the Apple reviewers... the user could always just reset their phone. More of an annoyance than malicious.
Yes, malicous was probably the wrong word to use. I meant it more as a reasoning for Apple to not include it in the SDK.
Amit Shah, @Steve, is it possible to protect an app with iOS-wide passcode? So I create a view with textfield to enter passcode, user enters, I compare it with iOS-wide passcode?
No it isn't. That would make things dangerous for the user (giving their passcode to an app)
How about just a (separate) passcode for accessing certain screens within an app? I don't see why that would be a security concern; I basically just want a similar screen without having to import a whole library.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.