I am a newbie to iOS. I am trying a local authentication framework in the app. My app flow is like when a user opens App he can able to see the splash screen, then if he is a new user he will redirect to the login screen and then to the dashboard screen. From login, if he clicks remembered me on, next time when the user opens the app he will directly redirect to Dashboard.
I just don't understand on which screen I add authenticationWithTouchID logic. On app open, I want to show TouchID popup so that the user can authenticate and redirect to the dashboard.
Update:1
I am checking remember me is true or not in didFinishLaunchingWithOptions()
of AppDelegate
and accordingly, I used to open the specific UIViewController
. So in the same method only I am checking user enabled touch id or not, if the user authenticates for touch id then I am showing popup else redirecting normally to dashboard. Is it a proper approach? And one more thing I want to ask is when pausing the app clicking home button and if I want to show touch id again when app reopens were to call that authentication method. Will it go to applicationWillEnterForeground()
?
Update:2
The dashboard content is getting visible in the background when Touch ID opens with applicationWillEnterForeground()