Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24507] Android N: Implement support for Background process optimizations

GitHub Issuen/a
TypeNew Feature
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2017-04-26T17:41:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterEric Merriman
AssigneeFrankie Merzadyan
Created2017-03-20T20:26:03.000+0000
Updated2017-08-18T22:41:24.000+0000

Description

Optimize the processes that occur in the background. Deprecate APIs for current background optimizations and use newer APIs and patterns. Particularly JobScheduler and GCNetworkManager.

Comments

  1. Frankie Merzadyan 2017-04-26

    Marking as resolved because: In Network module - the [broadcast receiver](https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/network/src/java/ti/modules/titanium/network/TiNetworkListener.java#L43) still works in API >= 24 as we [register it dynamically](https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/network/src/java/ti/modules/titanium/network/TiNetworkListener.java#L43). As for using JobScheduler, we only update the Kroll properties dictionary. Not much work there done to beg using JobScheduler. We do not want to potentially create bugs for low reward. Leaving Network related files as is. We do not listen or have receivers for ACTION_NEW_PICTURE or ACTION_NEW_VIDEO broadcasts. Any other changes in Android 7 regarding [background optimizations](https://developer.android.com/topic/performance/background-optimization.html), do not apply to us like this example.

JSON Source