Prompt the user to configure a pin for their phone

Hello,

When we detect that our user has not configured a pin or biometric security on their phone, we'd like to prompt them to configure a pin code from our iOS app. Reading through the security doc, I didn't see an API to do so. Is there a way to do such?

Thanks

Answered by DTS Engineer in 797805022

There is a way to determine whether a passcode is set, and it sounds like you’ve already got that sorted out. There is no dedicated mechanism to prompt the user to set a passcode.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I don't think there is and hope there will never be.

That would be a security weakness to let anyone know what security level they have set. And even worse, have an app that let him set its pin (with possibility to steal it) !!!

Why would you have to know ?

There is a way to determine whether a passcode is set, and it sounds like you’ve already got that sorted out. There is no dedicated mechanism to prompt the user to set a passcode.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Prompt the user to configure a pin for their phone
 
 
Q