I want to get cllipboard from iOS real device. But in Can't get UIPasteboard content in … | Apple Developer Forums show that i don’t have permission to get clipboard when appium is running background.
So i try to provide a method in my app, for getting clipboard context. Just like $backgroundApi.serviceE2E.getClipboard();
I try this in appium, but it does’s work. Showing error log with “Method is not implemented”
browser.execute(async done => {
const data = $backgroundApi.serviceE2E.getClipboard();
done(data);
});