Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17240] Android: TiCacheCleanup running indefinitely when app is in background

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.3
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterPhilippe Wueger
AssigneeUnknown
Created2014-06-04T13:09:46.000+0000
Updated2018-02-28T20:04:09.000+0000

Description

Problem Description

When opening an app and putting it to the background, TiCacheCleanup is still run every 60 seconds. This is probably not ideal for battery life and also not really necessary as long as the app is not being actively used.

Steps to reproduce

1. Create a new Titanium project 2. Run it on an Android device or on Genymotion 3. Put app to background 4. Do DDMS "Method profiling" for at least 60 seconds on the app 5. You will see that TiResponseCache$TiCacheCleanup.run is executed every 60 seconds.

Comments

  1. Mauro Parra-Miranda 2014-06-30

    Thanks for reporting. I set the priority to none, since the Platform Team will set it.

JSON Source