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.