I am researching hybrid app alternatives. One of the things I am looking into is the use for a native app with UIWebView
showing the app's content. Upon the user pressing a login button (which triggers a JS call) the app takes over this call and asks if the user wants to use Touch ID to login.
I have seen this in some casino apps (such as this one) and am wondering how that works.
From what I understand is, the native app with the UIWebView
intercepts the JS action and (if Touch ID is stored) it will take over. If no Touch ID is stored it will continue with the JS call. Upon success the native app will take over and ask to user if he/she wants to store the credentials using TouchID; afterwards it will continue with the JS call. No changes in the website are needed.
Unfortunately I can't find any information about how that works and any code examples on how to intercept the javascript calls and "manipulate" the action.
Update I understand that my question might be a bit too vague, I've updated it.