{ "id": "105120", "key": "TIMOB-13424", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T22:05:04.000+0000", "created": "2012-11-16T12:26:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "service" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T22:05:04.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5. Introduction\r\nThere is a third party Android SDK which internally runs a service which invokes events to be listened by the native developer using listener methods exposed in the SDK. If a developer is using this SDK then these listeners needs to be added in a Service in the Native Application created so that if the application terminates listeners remain active and listens to the events and can notify the device owner in case event is raised.\r\n\r\nWe created a module around this SDK to use it in Titanium Application.\r\n\r\nh5. Issue\r\nIn titanium application we created an interval service and declared listeners in the .js file of that interval service. Now the problem is that after execution of .js file by Native service created by Titanium application all the listener objects declared in the .js file are either lost or are garbage collected.As a result listeners does not get called by the third party SDK.\r\n\r\nIs there any provision in Titanium so that if an object is created in .js file of service it gets retained till the time service is running?\r\n\r\nWe referred following resources on appcelerator/github site to create and use service, but our issue is not addressed by these resources:\r\n1. http://docs.appcelerator.com/titanium/2.1/index.html#!/guide/Simple_Android_Services_in_Titanium\r\n2. http://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/android_services.js\r\n3. http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.Android.Service\r\n\r\nPlease help us on priority as this is affecting our product delivery.", "attachment": [], "flagged": false, "summary": "Android: Created service does not retain objects", "creator": { "name": "perminder.singh", "key": "perminder.singh", "displayName": "Perminder Singh Bhatia", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "perminder.singh", "key": "perminder.singh", "displayName": "Perminder Singh Bhatia", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Android", "comment": { "comments": [ { "id": "418928", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T22:05:04.000+0000", "updated": "2017-05-02T22:05:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }