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.
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
KS PR merged
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
Reopening because method name and param type changed
PR: https://github.com/appcelerator/KitchenSink/pull/31
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.