menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Transient ...
source image

Dev

1M

read

80

img
dot

Image Credit: Dev

Transient Activation: Why the copy button did not work on iPhone

  • An issue with the copy button not working on iPhones was identified in a company's app where users could update settings and copy a generated link.
  • The problem was attributed to Safari's Transient Activation feature, which caused a NotAllowedError for the copy operation despite successful setting updates.
  • Safari's unique security requirement for the Clipboard API, known as Transient Activation, only allows certain operations to be executed within a short window after direct user interaction.
  • The solution involved separating the 'save' and 'copy' actions by implementing a separate 'Copy Link' button that became enabled after the settings were saved, emphasizing the importance of cross-browser testing and comprehensive E2E testing.

Read Full Article

like

4 Likes

For uninterrupted reading, download the app