I think I remember that requesting certain types of information / privacy-related access requires that the phone have a pin? Maybe location services? Anyway, is there a way for an app to require that a phone have a pin for the app to work?
App require phone have a pin for app to load / work?
There are various options for this but I think this easiest to use is the keychain. If you create a keychain item with the kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
option, that’ll fail if there’s no passcode. Also, the item is deleted if the user disables their passcode.
ps The keychain API definitely has its foibles, which I discuss in:
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"