I want to get clipboard data in background over iOS 14+

  • I know, for secure reason, apple forbidden app the ability to get clipboard data in background.
  • But in some case, for example, i use appium to e2e testing my real device. And I could't get clipboard from webdriver. Because it's running background!
  • So, it's there any way to get clipboard from webdriver? It bothers me.

You cannot get UIPasteboard data from an XCTest UI Test, but you should be able to get mock pasteboard data from an XCTest Unit test. I have seen several examples of this implemented online.

I want to get clipboard data in background over iOS 14+
 
 
Q