Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3476] Ti.UI.iOS.appBadge and associated methods do not work

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2016-04-08T17:17:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterJason Kneen
AssigneeShak Hossain
Created2016-04-08T12:02:17.000+0000
Updated2016-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);

Comments

  1. Sharif AbuDarda 2016-04-08

    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.
  2. Jason Kneen 2016-04-08

    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.
  3. Fokke Zandbergen 2016-04-09

    [~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

JSON Source