{ "id": "175416", "key": "AC-6581", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2020-08-07T13:29:16.000+0000", "created": "2020-08-07T10:56:37.000+0000", "labels": [ "api", "ios", "iphone" ], "versions": [], "issuelinks": [ { "id": "58608", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "174800", "key": "TIMOB-27846", "fields": { "summary": "iOS: Calling Ti.Platform.openURL without all parameters causes the app to crash (regression)", "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": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-08-07T13:29:16.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "It seems that the Ti.Platform.openURL() call seems to have issues working with setInterval() \r\n\r\n1) Run the attached code on the simulator or device.\r\n2) Notice that a setInterval callback will print a counter on the console every second\r\n3) Click on the button which will switch to Safari and open a webpage\r\n4) Switch back to the app and observe a \"Script Error\" message being printed out on the console.\r\n\r\nThis error can be avoided if you supply the optional 3rd parameter to 'openURL()' which is a callback.", "attachment": [ { "id": "67485", "filename": "app.js", "author": { "name": "shamsulazhar", "key": "shamsulazhar", "displayName": "Shamsul Azhar", "active": true, "timeZone": "Asia/Kuala_Lumpur" }, "created": "2020-08-07T10:43:45.000+0000", "size": 635, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Calling Ti.Platform.openURL() without the optional 3rd parameter (callback) will raise a \"Script error\"", "creator": { "name": "shamsulazhar", "key": "shamsulazhar", "displayName": "Shamsul Azhar", "active": true, "timeZone": "Asia/Kuala_Lumpur" }, "subtasks": [], "reporter": { "name": "shamsulazhar", "key": "shamsulazhar", "displayName": "Shamsul Azhar", "active": true, "timeZone": "Asia/Kuala_Lumpur" }, "environment": "Host OS: Mac OS X\r\nOS Version: 10.15.6\r\nOS Arch: x86_64\r\nAxway Appcelerator Studio Version: 6.0.0.202005141803\r\nJRE Version: 13.0.1 \r\n9.0.3.GA,\r\nXCode Version: 11.6 ", "comment": { "comments": [ { "id": "456371", "author": { "name": "shamsulazhar", "key": "shamsulazhar", "displayName": "Shamsul Azhar", "active": true, "timeZone": "Asia/Kuala_Lumpur" }, "body": "Just noticed that this is a duplicate of the bug below:-\r\n\r\nBug AC-6561\r\nTi.Platform.openURL causes \"undefined is not an object\" error\r\n\r\nDon't know how to delete this bug report, sorry about that.", "updateAuthor": { "name": "shamsulazhar", "key": "shamsulazhar", "displayName": "Shamsul Azhar", "active": true, "timeZone": "Asia/Kuala_Lumpur" }, "created": "2020-08-07T11:05:39.000+0000", "updated": "2020-08-07T11:05:39.000+0000" }, { "id": "456372", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~shamsulazhar] no worries, duplicate bug reports happen! I'll close this out as a dupe of TIMOB-27846. It's available by installing {{appc ti sdk install -b 9_0_X -d}}, note that there is no GA build with this fix until 9.1.0 is released", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-07T13:28:42.000+0000", "updated": "2020-08-07T13:28:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }