question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App cache deleted when starting already installed app

See original GitHub issue

The problem

The App cache seems to be deleted everytime appium starts the already installed app. I don’t want the cache to be deleted because this leads to very long loading operations on app startup (some content has to be downloaded).

Right now I need to downgrade to Appium 1.5.3 but this is no option anymore, because I am testing on iOS and Android at the same time and testing with iOS 10+ needs Appium to be 1.6.0+.

When you need more information, let me know.

Thanks in advance!

Environment

  • Appium version (or git revision) that exhibits the issue: 1-6-0 - 1.6.1-beta
  • Last Appium version that did not exhibit the issue (if applicable): 1.5.3 and earlier
  • Desktop OS/version used to run Appium: OSX 10.11.6
  • Node.js version (unless using Appium.app|exe): 6.8.0
  • Mobile platform/version under test: Android 6.0.1
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe: Appium CLI

Appium Logs

Logs

Code To Reproduce Issue [ Good To Have ]

desiredCapabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, 'Appium')
desiredCapabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 20)
desiredCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, 'Android Device')
desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, 'Android')
desiredCapabilities.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, 'secret.app.test')
desiredCapabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, '.MainActivity')
desiredCapabilities.setCapability(MobileCapabilityType.TAKES_SCREENSHOT, true)
desiredCapabilities.setCapability('fullReset', false)
desiredCapabilities.setCapability('clearSystemFiles', false)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mykola-mokhnachcommented, Nov 15, 2016

Have you tried to set noReset capability to true?

0reactions
lock[bot]commented, Apr 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to clear app cache on Android & why you should
Clearing the cache is best seen as a temporary fix since every app will once again start populating the storage immediately. Despite the ......
Read more >
Program Is Not Listed in Add/Remove Programs After Installation
Symptoms. After you install a program on your computer, the program is not listed in the Add/Remove Programs tool in Control Panel.
Read more >
How to clear the data of an uninstalled app on an Android phone
When an Application is uninstalled the Data and Cache of the Application is automatically deleted there is no requirement to do it manually....
Read more >
Fix: Uninstalled Apps keep coming back on Windows 10 [2022 ...
Many users have reported that uninstalled apps keep coming back, after the restart of the PC. In this video I'm going to show...
Read more >
Does uninstalling an App clears the App cache and App data?
App data and cache is deleted. But any folders/files the app makes in your storage directory will not be removed. Like.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found