How can I know from my iPhone application that "user has entered wrong password to unlock iPhone?" Is there any Delegate or event that occurs when user has entered wrong password to unlock iPhone?
There's no public API for checking this.
Related
I'm creating an app both for android and IOS, the first time the user starts the app he'll be presented with a login screen, the server with all the credentials is already up so I just need to send through POST method username and password and check the server response (success or failure), then If the username and password are correct I was thinking about saving them in the NSUserDefaults and everytime the user opens the app I won't show them the login screen again but as a background task the app will retrieve the credentials from the NSUserDefaults and send them again to the server (It may return failure if the user has been eliminated or has changed his password), I just wanted to know: is this the right approach to this problem?
In my app, there are two type of login. Login with email and password AND login with touch ID. Is it possible to login with touch ID and getting user ID from API..
Thanks In advance
yes, you can login in either of the both ways .
Before you show the user login view controller , create a controller with a name authentication view controller and import local authentication framework and in the view will appear method write the code that is provided in the apple documentation for using touch id in the application.
Alternatively, you can also login with username and password when the ios device detects iOS 6,7 as touch id is supported from iOS 8 and the touch id has fall back mechanism which will also help in the same if user logs in with his username and password.
I am implementing Touch ID authorization in my application. It's working fine, but I also want to use the passcode option as an alternative to Touch ID, same as when the device is locked. How should I implement this?
AFAIK there is no way how to use Apple's passcode mechanism/authorization. They've only made public the Touch ID API, thus allowing you to verify the user by a fingerprint.
You will have to provide your own implementation and the user will have to set up the password when first opening the app or somewhere inside the app (like settings).
You can check how it is done in 1Password app for iOS, which gives you a choice of using Touch ID or a passcode (that you have to specify when setting up the app).
TL;DR You have to do it yourself.
When you use evaluatePolicy you get back success: Bool and error: NSError!.
if error.code is equal to kLAErrorUserFallback send the use to a specific Passcode screen you created yourself.
Respected Everybody,
I have the application that start from the login credential(userid and password) that can be get from the website only.
After login user can access all the functionality otherwise not. So here the question is :
Is this type of application is rejected by the appstore or not and if rejected then what all are the solutions or steps that may require to implement from my side ?
Or is there any way then i will provide the dummy userid and password to the appstore,and if there exists then where to give that userid & password for the testing purpuse to the apple team ?
Please provide me the proper solution so that i can upload my application on the appstore its urgent so provide as soon as possible.
When you submit your app to the app store on itunesconnect.apple.com there is a section where you can enter Review Notes. These are meant as notes intended for the Apple employee who will review your app. If your app requires the user to login you can enter a test username and password for the reviewer to use in this section. Your app will not be rejected for having a login screen as long as you provide a valid username & password to the reviewer.
For the iPad/iPhone can I detect when the user has the keypad lock turned on for inactivity protection?
If you have sensitive information in an application you will still often cache username/password and it is too disruptive to ask for a full username/password challenge after each period of inactivity.
I want to ensure that if the user has logged in with the username and password (and I cache it for them for convenience), the next time the device is picked up they have to type in their 4 digit passcode to unlock the device.
I'd want to be able to detect if the passcode lock setting is turned off, if it is I could build my own passcode unlocker or require a full username/password/security token authorization after every period of inactivity.
I don't think it's possible to do this on a device. See the answers to these questions for more information:
Can I tell if the iPhone has a passcode?
How can I find out if the iPhone user currently has a passcode set and encryption enabled?