{ "id": "176254", "key": "TIMOB-28507", "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": [ { "id": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-07-21T09:59:51.000+0000", "created": "2021-07-14T04:26:36.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "app", "arguments", "ios", "regression" ], "versions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [ { "id": "59303", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "176251", "key": "TIMOB-28513", "fields": { "summary": "iOS: App crashes on cold launch with Ti.App.getArguments() if opened from App Clip", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-07-21T09:59:51.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Summary:*\r\nAs of Titanium 10.0.0, the [Ti.App.arguments|https://titaniumsdk.com/api/titanium/app.html#arguments] property and the deprecated [Ti.App.getArguments()|https://titaniumsdk.com/api/titanium/app.html#getarguments] method are no longer defined. This is a regression and makes fetching an iOS app's arguments via a cold start impossible.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on iOS.\r\n# Look at the log.\r\n\r\n{code:javascript}\r\n// app.js\r\nconsole.log(`@@@ Ti.App.arguments: ${JSON.stringify(Ti.App.arguments, null, 4)}`);\r\nconsole.log(`@@@ Ti.App.getArguments(): ${JSON.stringify(Ti.App.getArguments(), null, 4)}`);\r\n{code}\r\n\r\n*Result:*\r\nThe \"arguments\" property wrongly returns {{undefined}} and the {{getArguments()}} method causes a crash because that method no longer exists.\r\n{code}\r\n[INFO] @@@ Ti.App.arguments: undefined\r\n[ERROR] console.log(\"@@@ Ti.App.getArguments(): \".concat(JSON.stringify(Ti.App.getArguments(), null, 4)));\r\n[ERROR] TypeError: Ti.App.getArguments is not a function. (In 'Ti.App.getArguments()', 'Ti.App.getArguments' is undefined)\r\n{code}\r\n\r\n*Expected Result:*\r\nThe {{arguments}} property and {{getArguments()}} method must always return an object. If no arguments were used to launch the object, then it will be an empty object printed below as {{{}}}.\r\n{code}\r\n[INFO] @@@ Ti.App.arguments: {}\r\n[INFO] @@@ Ti.App.getArguments(): {}\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Ti.App \"arguments\" property and getArguments() method are not defined as of 10.0.0", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458855", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12956", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-07-14T04:36:11.000+0000", "updated": "2021-07-14T04:36:11.000+0000" }, { "id": "458877", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-07-20T20:18:11.000+0000", "updated": "2021-07-20T20:18:11.000+0000" }, { "id": "458878", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Backported to 10_0_X", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-07-21T09:59:49.000+0000", "updated": "2021-07-21T09:59:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }