"Messages" in Google Maps are getting cleared when launched the "Google Maps" using Appium

I have Business url which will enable the Chat in Google Maps -> “Messages” .
So , i can chat on Google Maps -> Messages , after logout \ restart the device.

Issue : When I launch the Google Maps using Appium , able to launch the Google Maps successfully. But , its fresh App. Its is deleting all the saved conversations \Channels in Google Maps -> Messages.
When I launch the Maps(Without Appium) also the existing messages are not available.
Again , Manually need to launch the Business url , to enable Google Maps -> Messages .

Please let me know if any issue with my approach or workaround for the same.

Device : Nokia 8.1
code :

DesiredCapabilities capabilitiesN = new DesiredCapabilities();
capabilitiesN.setCapability(“newCommandTimeout”, 2500);
capabilitiesN.setCapability(“automationName”, “Appium”);
capabilitiesN.setCapability(“deviceName”, “xxxxxxxxxxxxxxx”);
capabilitiesN.setCapability(CapabilityType.PLATFORM, “ANDROID”);
capabilitiesN.setCapability(“platformName”, “ANDROID”);
capabilitiesN.setCapability(“appPackage”, “com.google.android.apps.maps”);
capabilitiesN.setCapability(“appActivity”, “com.google.android.maps.MapsActivity”);
try {
appiumDriver = new AndroidDriver(new URL(“”), capabilitiesN);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block

@RaviK hi. set correct capabilities to avoid app reset on start -> Different capabilities for different scenarios

Thanks a lot @Aleksei. It worked perfectly. :slightly_smiling_face: