Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17624] iOS8: Unable to badge an application icon

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-15T16:59:46.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.4.0
ComponentsiOS
Labelsios8, qe-3.4.0, regression
ReporterEwan Harris
AssigneeGary Mathews
Created2014-09-04T21:36:39.000+0000
Updated2014-09-15T17:07:39.000+0000

Description

Description

In KitchenSink->Phone->App Badge when trying to set the App Badge the console prints out the statement below. The App Badge property can't be set by using either the set method or changing the property because of this. The attached app.js is a test case which can be used to reproduce. *Notes* This is a regression as the test case can be used to set the App Badge on both an iOS7 and iOS6 device.
[INFO] :   Attempting to badge the application icon but haven't received permission from the user to badge the application

Steps To Reproduce

1. Add the attached app.js to a project and build to and iOS8 Device/Simulator. 2. Tap the either of the Set App Badge labels

Actual Result

The App Badge is not set and the console prints out the above statement.

Expected Result

The App Badge should be set to 20.

Attachments

FileDateSize
app.js2014-09-04T21:38:52.000+00001131

Comments

  1. Jon Alter 2014-09-05

    As of iOS8 permission is required to set the appBadge. The ability to request permission was added by TIMOB-17510 . KitchenSink needs to be updated to request permission to set the appBadge. PR: https://github.com/appcelerator/KitchenSink/pull/29
  2. Vishal Duggal 2014-09-05

    KS PR merged
  3. Olga Romero 2014-09-10

    Tested and verified an ability to badge an application icon, using Mac osx 10.9.4 Maverics Appcelerator Studio, build: 3.4.0.201409081810 Titanium SDK, build: 3.4.0.v20140909222515 acs@1.0.16 alloy 1.5.0-rc install@0.1.7 npm@1.4.23 sudo@1.0.3 titanium 3.4.0-rc titanium-code-processor@1.1.1 Xcode6-Beta7 Device: iPhone 5S iOS 8.0GM ks 28a706e9-4130-4acb-bc76-9494255a9279 version 3.1.1
  4. Jon Alter 2014-09-12

    Reopening because method name and param type changed
  5. Jon Alter 2014-09-15

    PR: https://github.com/appcelerator/KitchenSink/pull/31
  6. Ewan Harris 2014-09-15

    Verified fix on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.4.0.201409131030 Titanium SDK build: 3.4.0.v20140915084914 Titanium CLI, build: 3.4.0-rc3 Alloy: 1.5.0-beta2 Xcode6 GM Seed iPhone Device 5 (8.0 GM Seed) KitchenSink 3.1.1 Ran KitchenSink and badged the app using Phone->App Badge, the app asked for the permissions and then I was able to badge the app. Closing ticket.

JSON Source