Unable to Proxy on Appium

How can I setup proxy on Appium, I tried the following code but it didn’t work

String PROXY = “10.1.12.97:80”;

org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
proxy.setHttpProxy(PROXY)
.setFtpProxy(PROXY)
.setSslProxy(PROXY);

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.PROXY, proxy);

Thanks for your help,

Vishal

Hi Vishal,

I was also trying the same , but no luck. Did you get any fix for the proxy?

Regards,
Raghul