How to Reset Application Badge Count AS3

Hi,
I have successfully sent an apple push notification using a native extension for adobe air by anders-tbl. The notification simply sets the badge count to 1 and has a little message.
What confuses me is how do I reset this badge count once a user reopens my application or opens the application by clicking on the notification? The badge count always stays at 1 even if I delete the application and reinstall it, it’s still there!!??
I know I can reset the badge count by sending a notification with badge = 0, but I can't dynamically do this by sending an empty APN with badge set to 0 as you only get the device token on first application load? Surely you set this via some kind of AS3 function? I can’t seem to find any help searching google at all.
If anyone knows or can nudge me in the right direction on how you are suposed to do this that would be great.
Cheers,

You can learn more about the next AIR mobile and desktop features by applying for our private prerelease program. By doing so, you'll get to know the features of the upcoming release in advance!

Similar Messages

  • How to reset the Terminal Count indicator on the PXI-6608

    Dear Community,
    Is there any way to reset the terminal count indicator on the PXI-6608? When I Use Get Attribute.vi I get the correct value the first time, but unfortunately (unlike DAQmx) reading the value doesn't reset it...
    I'd like to keep track of how many times it has rolled over. And I don't want to use another counter to do that because I'd like to keep them free for other things.
    Thanks!
    Cas
    Solved!
    Go to Solution.

    Traditional daq does not have a means to reset the terminal count indicator, as far as I know. One thing you might be able to do is change the "output mode" to "toggle" and then read the "output state" to determine rollovers by determining when the output state has changed during your application.
    I hope this helps!
    gus....

  • How to reset new page counter

    Does anybody knows how to reset page counter (next free page number suggested on page creation)?

    If your web host doesn't provide you with meaningful stats, sign-up for Google Analytics.  Google will give you more valuable stats about your site visitors than a hit counter will.  And it's free.
    http://www.google.com/analytics/
    Simply paste the GA code they give you into your web pages.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How to reset a row count based on a column value?

    OracleBI Discoverer 10g (10.1.2.3)
    Oracle Business Intelligence Discoverer Plus 10g (10.1.2.55.26)
    I've got a Discoverer Plus report that shows item receipts, receipt dates, and if the receipt was inspected. I've got items that should be inspected every 5th receipt. There's got to be a handy-dandy function I can use to do this, right?
    Item        Receipt Date      Inspected         
    Bracket     1/1/2009               Y
    Bracket     2/1/2009               N
    Bracket     3/1/2009               N
    Bracket     4/1/2009               Y <--let's assume someone didn't follow the instructions
    Bracket     5/1/2009               N
    Bracket     6/1/2009               N
    Bracket     7/1/2009               N
    Bracket     8/1/2009               N
    Bracket     9/1/2009     I'm looking to count the receipts and reset the counter when Inspected = Y
    Item        Receipt Date      Inspected     Inspect_Count       
    Bracket     1/1/2009               Y                  0
    Bracket     2/1/2009               N                  1
    Bracket     3/1/2009               N                  2
    Bracket     4/1/2009               Y                  0
    Bracket     5/1/2009               N                  1
    Bracket     6/1/2009               N                  2
    Bracket     7/1/2009               N                  3
    Bracket     8/1/2009               N                  4
    Bracket     9/1/2009                                  5 <-- receiver should inspect on this receipt I'm open to other methods if mine seems like a dud.
    -Tracy

    Hi,
    You can use this query for achieve your requierment in your view or you can include in your etl .
    REgards salim.
    SELECT item, receipt_date, inspected
      FROM table_inspect;
    ITEM    RECEIPT_DA INSPECTED                    
    Bracket 01/01/2009 Y                            
    Bracket 02/01/2009 N                            
    Bracket 03/01/2009 N                            
    Bracket 04/01/2009 Y                            
    Bracket 05/01/2009 N                            
    Bracket 06/01/2009 N                            
    Bracket 07/01/2009 N                            
    Bracket 08/01/2009 N                            
    Bracket 09/01/2009                              
    9 rows selected.Solution
    SELECT item,receipt_date,inspected,inspect_count
    from table_inspect
    model
    partition by (item)
    dimension by( row_number()over(partition by item order by receipt_date) rn)
    measures(receipt_date,inspected,0 Inspect_Count )ignore nav
    (Inspect_Count[rn]= case when inspected[cv()]='Y' then 0 else Inspect_Count[cv()-1]+1 end)
    order by receipt_date;
    ITEM    RECEIPT_DA INSPECTED  INSPECT_COUNT
    Bracket 01/01/2009 Y                      0
    Bracket 02/01/2009 N                      1
    Bracket 03/01/2009 N                      2
    Bracket 04/01/2009 Y                      0
    Bracket 05/01/2009 N                      1
    Bracket 06/01/2009 N                      2
    Bracket 07/01/2009 N                      3
    Bracket 08/01/2009 N                      4
    Bracket 09/01/2009                        5
    9 rows selected.Edited by: Salim Chelabi on 2010-03-03 07:49

  • How to reset audio device count in Windows 7?

    Hello,
    I'm working w/ a fairly abused Windows 7 install that's seen a few chipsets, cpus, and gpus. I've also apparently installed the driver 2 times.
    Changing from mode to mode in the X-Fi (entertainment to game, etc) takes FOREVER. It gets worse w/ every install and I'm wondering if there's a way to reset this number, clear the driver cache, anything.
    Anybody?
    http://img.photobucket.com/albums/v2...evicecount.jpg

    Look carefully at the product that you are trying to update (the "About" selection under Help) and indicate the product and version you are using. Be sure you are talking about Acrobat and not Reader. The update link should work, but you indicate it does not. You would then go to the appropriate product update page and download ALL of the updates after your minor version. Then install them in order from the oldest to newest. If this does not work, then head back and do either a repair or reinstall of your original product (you typically do not need to uninstall first). Then try the updates.

  • Reset the Play Count?

    I can't figure out how to reset the play count in itunes

    I finally figured it out. Highlight the song(s), right click and select reset plays. Why isn't that in the help file?

  • How to stop the new health application from Count the steps/ woking background?

    how to stop the new health application from Count the steps/ woking background?
    I really need your help

    I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
    Show the Alert like this:
    // show an alert with a question and yes and no choices
    Alert.show( "Would you like to go to the Adobe Forums?", "Question",
         Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
    Then handle the response in the closeHandler() function:
    protected function closeHandler( closeEvent:CloseEvent ):void
    if( event.detail == Alert.YES )
         navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
    else if( event.detail == Alert.NO )
         // they chose no
    The following documentation on Alerts may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Alert
    Let me know if that helps...
    Ben Edwards

  • How to reset play count

    how to reset play count in iTunes

    Right-click the track(s) in iTunes, and choose "Reset Plays."

  • How to reset an application

    i delete the application and i cant reset my setting of the beginning, how to reset an aopplication on the iphone 4

    Once an application is deleted it does not leave behind any information. It always uninstalls completely.
    -SM

  • How do I reset my Gmail counter which is stuck on 3

    How do I reset my Gmail counter which is stuck on 3 regardless of how many unread messages are in my inbox

    Select the Gmail inbox and use the Mailbox ➙ Rebuild menu option.
    If that fails close Mail, go to your Home/Library/Mail/V2/MailData folder and delete the 3 files shown in the screenshot below:
    Launch Mail and check again.

  • How can I make a counter in Flash (with AS3)?

    Hello! I'm new to Actionscript, and I'd like to learn how to create a number counter that goes up each time it passes a frame on
    the main timeline. How can I do this?

    Declare a variable to hold the counter value and in the desired frame increment it by 1. 
    Example:
    // frame 1:
    var counter:int;
    // desired frame
    counter++;

  • How do I reset my activation count for cs4?

    I can't uninstall cs4 from my old computer.  I was told I could reset my activation count by contacting adobe is this true and can someone post  a link to contact them?

    Adobe ID, sign in, and account help
    Click the "Still Need Help?" links and you'll see a chance to connect with Web Chat.

  • App Store badge count shows the wrong number in iOS 8.0.2

    Just updated to iOS 8.0.2 on both my iPhone 5 and iPad Air and the App Store badge app count still shows the number of apps that had updates even though they were updated when syncing with my Mac.
    When you launch the App Store it quickly shows "Update" for a number of apps before then showing "Open"
    Anyone else got the same issue or know how to fix it?

    Had the same problem with upgrading to 8.0.2 and then having app updates occur while syncing with iTunes - although just for the iPhone not iPad - not sure what I did differently if anything. The badge number on the phone was wrong until I got an over-the-air update notification which reset the badge number. I uploaded the app over-the-air and now there is no badge number (I would assume until the next update). Will try a sync again with iTunes to see if it was something new with iTunes - or just an odd combination of updating to 8.0.2 in conjunction with app updates.

  • How to reset a FP-QUAD-510 with CVI ?

    I use a FP-QUAD-510 with FP-1600 ethernet module.
    In my CVI application, I want to programmatically reset the position counter.
    Is there any sample source code to do such operation ?
    Thank you in advance
    Chris

    Chris,
    I do not have any sample code that I can send you, but I can tell you how to do it. First, in FieldPoint Explorer, right click on the FP-QUAD-510 @x and choose Edit This Device. Then click on Channel Configuration. In the Channel Commands box, press the button that says Create Item. This will create a channel named "Control @Ch0". You can then write to the "Control @Ch0" item as if it was a normal output. Anytime in your code that you write a value of 1 to the "Control @Ch0" item, it will reset Axis 0 (channels 0 and 4). To change which channel you are resetting, simply change the checkboxes before pressing the Create Item button.
    Regards,
    Aaron

  • Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it?

    Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it? Because i've made lot of paid purchases using this apple id. In my game center account i have so many games data that i'd never installed.i wanna  stop sharing  friends and games with this xxx apple id in my old ipad version ios 4.2. and i can still keep using this apple id in my new ipad 3rd gen version ios 6 without sharing game and friends with this xxx apple id? and how to remove the games data that i never downloaded in my ipad but still registered at my game center account.i wanna keep using this apple id coz so many fav application i've purchased from this id. the answer as soon as possible if there is some one can help me to solve it.thank u for reading my question and very big thanks for anyone who  can give me a helpful answer.                 

    Why do you ask in the iWeb forum?

Maybe you are looking for