{ "id": "159418", "key": "AC-3476", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-04-08T17:17:31.000+0000", "created": "2016-04-08T12:02:17.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-09T17:49:42.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": "The following code does not work:\r\n\r\nTi.UI.iOS.appBadge = 0;\r\nTi.UI.iOS.appBadge = 10;\r\nTi.UI.iOS.setAppBadge(0);\r\nTi.UI.iOS.setAppBadge(10);\r\n\r\nthe following does:\r\n\r\nTi.UI.iPhone.appBadge = 0;\r\nTi.UI.iPhone.appBadge = 10;\r\nTi.UI.iPhone.setAppBadge(0);\r\nTi.UI.iPhone.setAppBadge(10);", "attachment": [], "flagged": false, "summary": "Ti.UI.iOS.appBadge and associated methods do not work", "creator": { "name": "jasonkneen", "key": "jasonkneen", "displayName": "Jason Kneen", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jasonkneen", "key": "jasonkneen", "displayName": "Jason Kneen", "active": true, "timeZone": "Europe/London" }, "environment": "iOS 8.4, 9.3\r\nSDK 5.2.2.GA", "comment": { "comments": [ { "id": "382213", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nTi.UI.iOS.appBadge = 0;\r\nTi.UI.iOS.appBadge = 10;\r\nTi.UI.iOS.setAppBadge(0);\r\nTi.UI.iOS.setAppBadge(10);\r\n\r\nThese are available from SDK 5.4.0. Since, SDK 5.4.0 GA release not available yet, Untill than use.\r\n\r\nTi.UI.iPhone.appBadge = 0;\r\nTi.UI.iPhone.appBadge = 10;\r\nTi.UI.iPhone.setAppBadge(0);\r\nTi.UI.iPhone.setAppBadge(10);\r\n\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPhone-property-appBadge\r\n\r\nRegards,\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-04-08T17:17:10.000+0000", "updated": "2016-04-08T17:17:10.000+0000" }, { "id": "382215", "author": { "name": "jasonkneen", "key": "jasonkneen", "displayName": "Jason Kneen", "active": true, "timeZone": "Europe/London" }, "body": "Sorry but I don't think this ticket should be considered closed.\r\n\r\n1. 5.4 has no release date (AFAIK) and we're on 5.2.2 currently\r\n2. The current documentation does have a reference in the Ti.UI.iPhone section saying to use Ti.UI.iOS but the Ti.UI.iOS section makes no reference (as far as I can see) that it's 5.4 only -- leading people to use that thinking it's the correct thing to do and find it doesn't work.\r\n\r\nSurely the Ti.UI.iOS references for appBadge and setAppBadge should be updated to show it's a 5.4 feature AND some reference should be made to use Ti.UI.iPhone prior to 5.4 OR ( which makes more sense to me) the documentation should be changed to remove 5.4 references and *latest* should refer to the latest released SDK. \r\n\r\nIt's very confusing to go to the SDK documentation for \"latest\" to find it's referring to an SDK that isn't released yet.", "updateAuthor": { "name": "jasonkneen", "key": "jasonkneen", "displayName": "Jason Kneen", "active": true, "timeZone": "Europe/London" }, "created": "2016-04-08T17:26:56.000+0000", "updated": "2016-04-08T17:26:56.000+0000" }, { "id": "382243", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~jasonkneen] this is confusing indeed: TIDOC-2488\r\n\r\nI've done PRs to fix the broken links and missing versions:\r\n\r\n* https://github.com/appcelerator/titanium_mobile/pull/7928\r\n* https://github.com/appcelerator/titanium_mobile/pull/7927", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-04-09T17:49:42.000+0000", "updated": "2016-04-09T17:49:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }