0

So I was reading a lot of people saying that you can't copy in IOS without user interaction, but this is not true.

Here is the proof: https://www.latestdeals.co.uk/claim/beauty-pie/beauty-pie-15-off-free-delivery-first-order

If you open this website on an IOS device, you will see that the code copies successfully WITHOUT any user interaction, but HOW this is made?

I tried almost everything on my hand, but nothing seems to work.

regex
  • 263
  • 4
  • 11
  • follow this link for the try https://stackoverflow.com/questions/34045777/copy-to-clipboard-using-javascript-in-ios – Vhora Abdulrauf Jul 29 '22 at 17:53
  • @VhoraAbdulrauf all of those answers have `execCommand('copy')`, which needs user interaction – regex Jul 29 '22 at 18:02
  • maybe trying to force any user event, trigger some clicks but i'm not sure – regex Jul 29 '22 at 18:17
  • Hmm.. I went to that link, saw the "Copied Code" message... switched to Notes... Paste does NOT paste that code - it pastes the last text I had copied. – DonMag Jul 29 '22 at 18:48
  • 1
    The lastdeals site relies on `load` event to force you to accept the clipboard permission, which is considered an interaction. https://i.imgur.com/qKGubmj.png – thdoan Jul 06 '23 at 00:29

0 Answers0