Android - longPress is not performing any action

I’m trying to long-press element with following code:

    .then(function () {
        var logoElement = driver.elementByXPath("//android.widget.ImageView[@index='0']");
        var action = new wd.TouchAction();
        action.longPress(logoElement,4000);
        action.perform();
        driver.performTouchAction(action);
    })

I think I went through all of the topics here and all I can find is that this method is deprecated and new one should be used. I spent hours trying to figure this out.

I know this element is valid cause when I click it, it works fine.

UiAutomator is showing it as long-clickable as well.

I’m getting: Error: Invalid element or el field passed

Appium v.1.7.2