[AC-3476] Ti.UI.iOS.appBadge and associated methods do not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-04-08T17:17:31.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Jason Kneen |
Assignee | Shak Hossain |
Created | 2016-04-08T12:02:17.000+0000 |
Updated | 2016-04-09T17:49:42.000+0000 |
Description
The following code does not work:
Ti.UI.iOS.appBadge = 0;
Ti.UI.iOS.appBadge = 10;
Ti.UI.iOS.setAppBadge(0);
Ti.UI.iOS.setAppBadge(10);
the following does:
Ti.UI.iPhone.appBadge = 0;
Ti.UI.iPhone.appBadge = 10;
Ti.UI.iPhone.setAppBadge(0);
Ti.UI.iPhone.setAppBadge(10);
Hello, Ti.UI.iOS.appBadge = 0; Ti.UI.iOS.appBadge = 10; Ti.UI.iOS.setAppBadge(0); Ti.UI.iOS.setAppBadge(10); These are available from SDK 5.4.0. Since, SDK 5.4.0 GA release not available yet, Untill than use. Ti.UI.iPhone.appBadge = 0; Ti.UI.iPhone.appBadge = 10; Ti.UI.iPhone.setAppBadge(0); Ti.UI.iPhone.setAppBadge(10); http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPhone-property-appBadge Regards, Sharif.
Sorry but I don't think this ticket should be considered closed. 1. 5.4 has no release date (AFAIK) and we're on 5.2.2 currently 2. 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. Surely 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. It's very confusing to go to the SDK documentation for "latest" to find it's referring to an SDK that isn't released yet.
[~jasonkneen] this is confusing indeed: TIDOC-2488 I've done PRs to fix the broken links and missing versions: * https://github.com/appcelerator/titanium_mobile/pull/7928 * https://github.com/appcelerator/titanium_mobile/pull/7927