Appium 1.6.4 by default launches app in noReset:False mode

Hi,

I’m using Appium 1.6.4 and Java Client 5.0.0-BETA7. Tried starting Appium Server via cmd using appium -a 127.0.0.1 -p 4723 and with Appium Desktop by specifying just the host and port.

In both the cases, when it launches the app, it resets the app data, even though I have not specified noReset anywhere, neither while starting the server nor in Desired Capabilities.

Any idea why this is happening?

Code -

DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("deviceName", "My Phone");
caps.setCapability("udid", "xyz"); 
caps.setCapability("platformName", "Android");
caps.setCapability("platformVersion", "6.0");
caps.setCapability("appPackage", "xyz");
caps.setCapability("appActivity", "xyz");
try {
	AppiumDriver<WebElement> driver = new AndroidDriver<WebElement>(new URL("http://127.0.0.1:4723/wd/hub"), caps);
		
} catch (MalformedURLException e) {
	System.out.println(e.getMessage());
}

Hi By default the value of noRESET is False which means whether you not specifiy in desired capabilities it will automatically reset the app
add desired capabilitiy noRESET and set its value to true

noReset - Don’t reset app state before this session. Default false
fullReset - (iOS) Delete the entire simulator folder. (Android) Reset app state by uninstalling app instead of clearing app data. On Android, this will also remove the app after the session is complete. Default false

@upendraupadhyay, @Telmo_Cardoso thanks for your replies and the server capabilities link.