[AC-747] The value on "Badge" is not increased after receiving the Push Notification
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-10-28T08:37:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | TCSupportTriage, ios, iphone, pushnotification |
Reporter | Andrey Mikhaylov |
Assignee | Mauro Parra-Miranda |
Created | 2014-08-15T14:12:59.000+0000 |
Updated | 2016-03-08T07:37:00.000+0000 |
Description
When Push Notification received, the badge value is not increased. This happens only in iPhone application compiled in Titanium.Do not suggest increasing the value manually using the appBadge value because the value should change even if the application is closed.
Hello, please provide a testcase/code of how you manage the push notification. Best Regards
Titanium.Network.registerForPushNotifications({ types:[ Ti.Network.NOTIFICATION_TYPE_ALERT, Ti.Network.NOTIFICATION_TYPE_BADGE, Ti.Network.NOTIFICATION_TYPE_NEWSSTAND, Ti.Network.NOTIFICATION_TYPE_SOUND ], success:function(e) { Alloy.Globals.core.deviceToken = e.deviceToken; Ti.API.info('Token - ' + e.deviceToken); }, error:function(e) { Ti.API.error(e); }, callback:function(e) { notifyReceive(e.data); //handler inside running application }, });
Hello, We have tested this issue. And we can send badge number from dashboard ACS pushNotification but if we want to increment or decrement badge number, prefix the number with either the + or - symbol to increment or decrement the current value, respectively. [Doc Link](http://docs.appcelerator.com/cloud/latest/#!/api/PushNotifications)
Testing Environment:
Titanium SDK: 3.3.0.GA Titanium CLI: 3.3.0, iPad: 7.1.2, OS X Version: 10.9.4, Appcelerator Studio: 3.3.0 Thanks.