macosemailforce-touch

OSX link preview on one-time link


As part of a password reset process, it's not uncommon to send out a one-time link that will expire once clicked, or similarly activation links. We're seeing an issue where a user accidentally Force Touches a preview and expires the reset link in OSX Mail, thereby being unable to click the link to complete the form in a browser. Is there any way to prevent this preview behaviour to stop this happening? I found this similar question asked on the Apple forums but with no answer.

https://discussions.apple.com/thread/7150121

Thanks Jason


Solution

  • As far as I know, this is impossible. This feature is baked into the very core of OS X and unless there is an option in Settings.app there is now way to disable it.

    Also there is no specific header or user agent set so you could determine on server-side.

    Unfortunately the answer seems to be no.

    EDIT In the comments we came up with a JavaScript workaround. Since the force-click preview does not execute JavaScript, you could do the actual resetting process using AJAX or view a JavaScript redirection on a different page.