Correct App behavior when TouchId/MarshMallow authentication fails

Currently I have App creating a LoadingPage, and onAppearing I want to use Touch-id and MarshMallow Credential before continuing with the app; my question is, what to do if the authorization fails.

Ideally, I should really terminate the app if such event happens. Now knowing that Terminating is frowned upon, what's my best option?

A popular iOS app GoodReader; with Touch enabled, on launch, it shows the touch auth prompt; Cancelling or failing that shows me iOS home screen; GoodReader is still shown on TaskBar, and selecting it shows the auth prompt back again.

Thanks in advance.

Best Answer

Answers

  • Hi Adam,

    thanks for the quick reply; here is the reason why I don't think it's a good idea;

    TouchId auth Prompt by default has a Cancel button. Suppose as a user, I don't want to continue at that point, and I click the cancel button. At that point, it's very non-intuitive to show an alert message saying "You need to auth.... blah blah blah" and a button to try again. --- does that make sense?

  • adamkempadamkemp USInsider, Developer Group Leader mod

    I don't think that's unintuitive. They canceled the TouchId prompt, not the opening of the app.

  • I finally decided to show the user an alert box, with a continue button on the main page..

Sign In or Register to comment.