Why is the badge number removed?

I have notifications enabled in my mobile Flex application and notifications are working fine, but, the Air SDK seems to remove the "badge" number automatically before the invoke (and activate) events are fired.  It's even noted as the standard behavior here: http://blogs.adobe.com/airodynamics/2012/05/29/push-notifications-supp ort-in-ios/
Not sure how it was determined that this logic was appropriate, which is obviously business logic and not normal behavior, but, I don't see a workaround to override.
I want to manage the badge numbers in the app, not have the Flex SDK decide when to remove the badge.  If you look at ANY application that uses the badge intelligently, you'll see it isn't removed when the app is fired up.
I'm looking for a workaround to set the badge back to it's original state, however, I don't think it's possible, since it looks like this is cleared before invoke/activate events.
Anyone know how this can be "fixed"?  I don't even see a way using ANEs (which I'm using to get/set the badge).
FYI, I posted this in the Flex community also, not sure which is more appropriate for this question.

Well, as you point out, this is by design, so this is the typical "open a bug report and ask for votes" situation. I guess this was made because Adobe should otherwise have designed an extra API to validate the notification, or to control the badge number, which is rather specific to iOS (although notifications are only supported on iOS anyway...).
What I've done in the past is get the payload data (in the app launched or the notification received event), get the set badge number, and if I still need the badge number place it again through any of the available ANEs out there.

Similar Messages

  • Why, with the same number of photos in both places, do I still have 25 GB of storage on my iPad and have to BUY more space in iCloud?

    Why, with the same number of photos on my iPad and supposedly in iCloud, do I still have over 25 GB of space on my iPad but now need to buy even more storage space in iCloud? My iPad is 64 GB and I am now paying for 20 GB of iCloud storage with 864 MB left!

    As I said: 
    Even if the Photos are less than 20GB,  There's other stuff on the iPhone that is likely getting backed up to iCloud and using space. Basically your Phone has more space to spare than iCloud.
    You can check in Settings->iCloud->Storage->Manage Storage to see what is using up the space in iCloud.
    Anyway, turning off Photo stream will remove all photos from iCloud, it will not remove them from the iPad if they were taken with it, or copied to it.
    Again I suggest you check in:Settings->iCloud->Storage->Manage Storage to see what else is using your iCloud space.

  • Why is the week number in iCal not ISO8601?

    why is the week number in iCal not ISO8601?

    Error "The serial number is not valid for this product" | Creative Suite

  • Could you show me the detail of the MacBook Air md226x/a? And why is the model number different with another Air?

    could you show me the detail of the MacBook Air md226x/a? And why is the model number different with another Air?

    Search for MD226x/a on Google.

  • Why does the pen tool remove previous line when I add new anchor points??

    Why does the pen tool remove previous lines??
    Video here:  http://youtu.be/8AmPUkD88h0 
    It removes the hairline on the face, when I add more anchor points. Why? And how do I correct it?

    The ins and outs of the new and changed behaviors in the re-engineered pen tool have been disussed here on this forum and I'm sure a little detour to the help files will also shed some light on this...
    Mylenium

  • WHY was the Print icon removed?

    WHY was the Print icon removed?
    I want it back.
    I used to have an icon for printing on the Toolbar in 3.5.5.
    When I asked where it went, I found this answer: "That Print window will show every time you go to print something in Firefox 3.6+ versions, the option to suppress that window from appearing and the user to be able to print "directly" was removed." Tried to reinstall 3.5.5 but couldn't. Not liking 3.6 at all

    Took a tad more than just "going to Customize. " First thing to do was figure out where "Customize" might be. Just guessing, I clicked the three-horizontal-line box at far right end of the address bar. Downloads was on that menu. But I want it on my toolbar, where it used to be at far right of address box. At bottom of the Menu screen there was a bar, Customize. Clicked that and got a screen where I could move Download and other icons around by clicking on the icon, holding, and dragging. But that didn't get it on the toolbar. Finally, out of curiosity I right-clicked the icon to see what would happen. I got a small box giving me choice to Move to Toolbar. Clicked that. BINGO!!! Also figured out you can do same by clicking View/Toolbars/Customize, then right click any icon you want on Toolbar and put it there. Thanks for starting me in right direction.

  • Why is the serial number in the email invalid for Elements?

    why is the serial number in the email invalid for Elements?
    downloaded the right software...using the number in the email... no joy!

    Error "The serial number is not valid for this product" | Creative Suite

  • HT1915 Why was the shopping cart removed for iTunes store???  I NEED it!!!!!!

    Why was the shopping cart function removed from iTunes???  I loved using it and miss it dearly.

    Hi..
    Might be a workaround for that >  http://www.tuaw.com/2009/09/09/shopping-cart-gone-in-itunes-9/

  • Why was the link button removed from the piano roll?

    Why was the LINK (chain) button removed from the piano roll? This makes Logic X useless to me as I can no longer compose or perform new lines based on previous midi performances. PLEASE BRING IT BACK!

    I miss that button too and just filled out the LX Feedback form (Menubar -> Logix Pro X-> Feedback) with the following text. Maybe if you guys did the same, we had a chance revive this essetial feature!!!
    thanks!
    Sebi
    Hi there,
    it seems as if the Link Button (Yellow chain symbol) has been removed from the piano roll for no reason. In Score View it is still there.
    I (and probably more users) absolutely NEED that Button to decouple the content of the piano roll from the selected track/region AND to use multiple piano roll windows with independent content.
    - For transscripting (Mute/Solo Audio regions while editing a Midi-Region)
    - For arranging. Edit 2 different midi regions both in separate Piano Roll windows
    - For recording. "Reading" Drum-Patterns while recording the Bass e.g.
    Please bring that button back or explain why it was removed
    Best regards,

  • I am developing turn based game but it does not clear the badge number

    Currently i am developing turn based game and i get notifications for new game if someone invite me but i unable to clear these badge number . Is there any one who can suggest me how to clear badge number's for turn based game in objective c ?

    HI
    As per my understanding of your  issue, there  are 2 ways.. one is what u are trying...in this way first ensure your  item have proper  canvas setup. Or  try to  display the canvas without  using  button.  If this work, then there should not be problem.
    Second way of doing is ..
    Using  TAB Canvas.   You put all your 'MYBLOCK' data on  TAB PAGE(2ND PAGE), ....AND  in when buttong pressed, u just use go_block...will complete your job without much effect.
    If any issue, post here..

  • HT3529 why is the phone number for imessage grayed out

    When I sign in with my apple ID and then click next, it grays out the phone number and i'm unable to use it. I don't want to use my email but it won't let me have access to my phone number. Please Help! Thanks.

    OK, try this:
    Sign back out of Messages and reset the phone (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the Home screen redisplays, go back into Messages and sign back in again, and go through the prompts.
    Once you are done, see if your phone number is checked off. It will be greyed out:
    Cheers,
    GB

  • Why is the .wav file removed from text messages?

    Why is my IPhone removing the .wav file that is being sent via text message to my phone? If I send it via an email it comes in but not via a text message sent to my phone number.

    I see that there have been 212 views but no replies. I'd love to know if anyone has any thoughts. I ahve voicemails from an outside company forwarded to my IPhone and they come in MUCH quicker via text format then with email. They would also be easier to open. If this is simply not availabel ok but I've seen some other Google results that seem to imply that attached files are available??
    Is it because the files are bigger then a standard text message that is gets removed.
    Any imput would be appreciated.
    Thanks

  • Why was the pause button removed from the download bar?

    I know about the pause option in the context menu, but the question is simply, why??? And the pause option is greyed out for me in the context menu, and yeah I've looked at https://support.mozilla.org/en-US/questions/980832 and https://support.mozilla.org/en-US/questions/981703 but the suggestions don't solve it for me.
    My question is, why just remove some functionality that a lot of users are used to having? Why do you want to make people use an add-on for what seems to be one of the simplest and most fundamental functionality of a web browser? What do you hope to accomplish?

    ''cor-el [[#answer-663735|said]]''
    <blockquote>
    Did you try Safe Mode?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problem.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    </blockquote>
    Did you try reading my question?

  • Why does the DC installer remove Acrobat Pro XI, and all of its plugins, without warning?

    When you run the "Update" to Acrobat DC, Acrobat XI, and any plugins you are using, disappear. There is no warning. Pro XI is just simply gone.
    It is not possible to install Pro XI along side of DC. If you try, the install seems to work, but the Applications folder only contains DC.
    Also: Acrobat Pro XI does not appear in the Previous Versions list in the Creative Cloud app.
    The only way I have found to get Pro XI back is to uninstall DC, then go to the Pro XI Download page: https://creative.adobe.com/products/acrobat
    Click Download, and the CC applet will download and re-install Acrobat Pro XI. You will then need to re-install all your plugins.
    Adobe: Thank you so much for creating a massive support headache for your customers! Your ability to screw us over knows no bounds.

    Thank you very much for taking your time and answering all the itens.
    01. My description was subpar. I mean this:
    03. I did test and the number of icons it supports in each row is smaller.
    04. Are you sure this is the behavior of XI? I did edit the whole RHP creating new groups and arranging the tools accordingly to my workflow. I did not remember to not be able to remove/add a tool.
    05. The second bar is not permanent. But I understand Adobe chose to clean the UI this way and I simply prefer the other way.
    06. I still did not find the improvements. To place tools in top bar or RHP is also possible in XI. But of course I take your word and will get deeper on this.
    08. Thanks, I was thinking about a tool to search contents.
    10. I mean to dismiss definitively. Did not found a preference for this. And there is no X.
    11. It centers the window vertically no matter the exact position of the last used. Not a serious issue, but still an issue. For example: I set all windows to align to notifications. Acrobat does not:
    Acrobat is behind iTunes notification
    Front: Path Finder, back: Acrobat and InDesign behind all
    Acrobat is behind InDesign window, small difference at bottom
    Illustrator also forgets position and open aligned at top
    12. Very very big grey Open dialog under Mac OS X
    13. It does not crash under a given operation. It occurs with any PDF file and even with no file open. Since the DC install, Illustrator also begun to crash, although less frequently. An example:
    I was using 10.10.2 until some hours ago and now with the updated 10.10.3 the problem remains. I will have to do more tests trying to identify a common element or at least some clue, but the other apps, Adobe's or not, are running OK. If I get any new on this, I will keep you informed.

  • HT1349 why is the serial number not found on the records?

    my ipod nano's serial number is not found on the records, why?

    You don't. Why do you think there are any and why do you need it?  iOS apps don't need a S/N since all purchases are via the App Store and recorded there.

Maybe you are looking for