{ "id": "129028", "key": "TIMOB-16874", "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": null, "resolutiondate": null, "created": "2014-04-15T05:41:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": null, "updated": "2020-05-28T04:24:12.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "attachment": [ { "id": "47314", "filename": "Error.png", "author": { "name": "pmohankumar", "key": "pmohankumar", "displayName": "Mohan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-15T05:41:44.000+0000", "size": 339558, "mimeType": "image/png" }, { "id": "47315", "filename": "Project.zip", "author": { "name": "pmohankumar", "key": "pmohankumar", "displayName": "Mohan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-15T05:41:44.000+0000", "size": 55101, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: require() from an included file consistently throws an error if app was started for service (not through app.js)", "creator": { "name": "pmohankumar", "key": "pmohankumar", "displayName": "Mohan", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "pmohankumar", "key": "pmohankumar", "displayName": "Mohan", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Studio build: 3.2.1.201402041146, Ti SDK 3.2.2.GA, Windows 7, Android Nexus S emulator, Android SDK 4.4.2 API Level 19.", "comment": { "comments": [ { "id": "302125", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering for further evaluation as I verified that global.require is assigned only if there is current activity.\r\n\r\n{code}\r\nif (self.id == '.' && self.context.currentActivity)\r\n{ \r\n global.require = require; \r\n Titanium.Android.currentActivity = self.context.currentActivity; \r\n return runInThisContext(source, filename, true); \r\n}\r\n{code}", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-23T04:37:20.000+0000", "updated": "2014-04-23T04:37:36.000+0000" }, { "id": "306634", "author": { "name": "davidfabreguette", "key": "davidfabreguette", "displayName": "david fabreguette", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still getting this issue on one of our main app in production. Do we have an idea of when it will be fixed ? Or any work around ? ", "updateAuthor": { "name": "davidfabreguette", "key": "davidfabreguette", "displayName": "david fabreguette", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T13:30:14.000+0000", "updated": "2014-05-28T13:30:14.000+0000" }, { "id": "455571", "author": { "name": "jerry118118", "key": "jerry118118", "displayName": "Jerry", "active": true, "timeZone": "Asia/Hong_Kong" }, "body": "Is the issue fixed? As I am getting a similar error reported in https://stackoverflow.com/questions/61951894/getting-originalrequire-is-not-a-function-when-using-bencoding-alarmmanager-in. Does anyone have idea on that?", "updateAuthor": { "name": "jerry118118", "key": "jerry118118", "displayName": "Jerry", "active": true, "timeZone": "Asia/Hong_Kong" }, "created": "2020-05-28T04:24:12.000+0000", "updated": "2020-05-28T04:24:12.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }