swift3dtouchquickaction

Use 3D Touch action with Touch ID protected device


Hi guys I've a big question. If I have an app that could be protected by Touch ID protection, how do I have to manage the 3D Touch quick action that interests data? I've to ask fingerprint before the execution of the action, or I let the action be executed without any lock, or maybe I create an alert that tell the user 'Impossible to use quick action while Touch ID protection is actived' ? So, I ask you the best way to manage this type of problem..code will be well accepted :)


Solution

  • It should be noted that sensitive information are not to be shown when the app icon is 3D touched.

    What should happen is that you should allow the user to interact with the 3D Touch but when the app opens the screen based on user's selection, the app should prompt for Touch ID or passcode alert. Unless it's verified app shouldn't function as intended since the user is not authenticated at that point.

    In case you want to stop the actions from appearing all together, then it could be done, you would just need to change the 3D Touch actions dynamically.

    Refer to this for details, there are two ways to generate action 3D Touch action items, static and dynamic. Using the dynamic one, you could achieve it.