Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (device)
Viewing all articles
Browse latest Browse all 250

possible bug for Ti.UI.iPhone.appBadge

0
0

There are 2 issues associated with the app badge:

//1. To clear the badge we need to set the app badge to 1 and then 0:
Ti.UI.iPhone.appBadge = 1;
Ti.UI.iPhone.appBadge  = 0; 
//we know this is bug has been around for a while, I am not sure if this is still valid with the current version
 
//2. Setting the appBadge causes the phone to ask for push notification permission
Ti.UI.iPhone.appBadge  = 0; //this will prompt user to ask for push notification permission
For the first bug, we found the workaround here: http://developer.appcelerator.com/question/148866/clear-notifications

For the second bug: To replicate the second behavior, one has to follow this trick to really simulate a new user behavior on the device: http://stackoverflow.com/questions/12369900/when-i-delete-my-ios-application-push-notification-state-remains (look at the second answer) to make sure that you are prompted.


Viewing all articles
Browse latest Browse all 250

Latest Images

Trending Articles





Latest Images