{ "id": "64161", "key": "TIMOB-3529", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2019-11-14T23:08:43.000+0000", "created": "2011-04-15T03:46:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "exalture", "parity" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [], "assignee": null, "updated": "2019-11-14T23:08:58.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": "This is feature request to allow \"undefined\" to be set as part of Ti.Properties, specifically the setBool and getBool. This works fine on iOS but does not on Android. Currently getBool accepts \"true\", \"false\" and \"null\".\n\nThere is a http://support.appcelerator.com/tickets/BUQ-42972-167/homepage ticket asking for this.", "attachment": [], "flagged": false, "summary": "Android: Ti.Properties do not accept \"undefined\" as value", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1170, "state": "closed", "name": "2019 Sprint 23", "startDate": "2019-11-04T18:38:14.526Z", "endDate": "2019-11-17T18:38:00.000Z", "completeDate": "2019-11-18T16:38:18.423Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "159821", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "setting undefined should have the same effect as setting to {{null}}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-18T13:58:45.000+0000", "updated": "2011-07-18T13:58:45.000+0000" }, { "id": "200766", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "The following code works fine on iOS, but on Android it crashes (tested with a Samsung Galaxy S2, TiSDK 2.0.2GA):\r\n\r\n{code} \r\nvar win = Ti.UI.createWindow({ backgroundColor: 'white' });\r\n\r\nTi.App.Properties.setBool('boolValue1', true);\r\nTi.API.info('The value of the boolValue1 property is: ' + Ti.App.Properties.getBool('boolValue1'));\r\n\r\nTi.App.Properties.setBool('boolValue2', false);\r\nTi.API.info('The value of the boolValue2 property is: ' + Ti.App.Properties.getBool('boolValue2'));\r\n\r\nTi.App.Properties.setBool('boolValue3', null);\r\nTi.API.info('The value of the boolValue3 property is: ' + Ti.App.Properties.getBool('boolValue3'));\r\n\r\nTi.App.Properties.setBool('boolValue4', undefined);\r\nTi.API.info('The value of the boolValue4 property is: ' + Ti.App.Properties.getBool('boolValue4'));\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-06-28T12:03:40.000+0000", "updated": "2012-06-28T12:03:40.000+0000" }, { "id": "244132", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/4035\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-26T17:56:29.000+0000", "updated": "2013-03-26T17:56:29.000+0000" }, { "id": "268038", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "New pull request added\nhttps://github.com/appcelerator/titanium_mobile/pull/4600\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-08-25T12:01:50.000+0000", "updated": "2013-08-25T12:01:50.000+0000" }, { "id": "276215", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The PR doesn't address parity since iOS behaves differently for 'undefined' values. This is part of a larger issue that would require discussion between all the platforms. Bumping it out of 3.2.0", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T20:08:28.000+0000", "updated": "2013-10-22T20:08:28.000+0000" }, { "id": "452703", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing per comments.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-14T23:08:43.000+0000", "updated": "2019-11-14T23:08:43.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }