Skip to content

Is there has any way to run js thread in real device app context? #2448

@wabicai

Description

@wabicai

I want to get cllipboard from iOS real device. But in https://developer.apple.com/forums/thread/706761 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);
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions