[TIMOB-24507] Android N: Implement support for Background process optimizations
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-04-26T17:41:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Eric Merriman |
Assignee | Frankie Merzadyan |
Created | 2017-03-20T20:26:03.000+0000 |
Updated | 2017-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.
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.