Indicator of banner of compensation after receiving the data PUSH

I currently receive PUSH notifications and am able to update the application with a red flag icon and create a high notification icon on the page using the showBannerIndicator API.

Does anyone know how to use removeBannerIndicator to remove the top bar notification icon?

To generate the notification icons when I get PUSh I use:

function onData(data) {
  try {
    blackberry.utils.blobToString(data.payload);
    blackberry.app.setHomeScreenIcon("local:///images/notifyicon.png");
        blackberry.app.showBannerIndicator("images/bannerlogo.png");
        return 0;
    }
    catch (err) {
      alert(err);
    }
  }

To clear the icon homescreen I follow these steps after that the user opens the app first to access the info:

function handleForeground() {
    inBackground = false;
    // Reset the app icons.
    blackberry.app.setHomeScreenIcon("local:///images/icon.png");
    blackberry.app.setHomeScreenIcon("local:///images/iconno.png", true);
}

I tried to use blackberry.app.removeBannerIndicator () in this function in hoping it would clear the icon until it receives a new helping HAND, but that doesn't quite work. The API documentation is not very helpful.

Hope someone could help on this.

OK, understood this.

I create a separate function and use the listen page comes to the foreground by making a call to load paper:

blackberry.app.event.onForeground(whatever);

  function whatever(){
    blackberry.app.removeBannerIndicator();
    };

    $(document).ready(function(){
        whatever();
    });

Thus, whenever the application comes to the foreground after have received a boost, the first thing he does is clear the banner icon.

I hope this help someone who has had a similar problem.

Tags: BlackBerry Developers

Similar Questions

  • My podcast is not always appear 2 days after receiving the confirmation email.

    https://iTunes.Apple.com/us/podcast/Church-of-Christ-Northside/id1112198492 Still does not appear in iTunes 2 days after receiving the confirmation email.

    It may take a few days: I have to give it another 48 hours and if it appeared then contact Support. Go to https://itunespartner.apple.com/en/podcasts/overview and click on the link "Contact us" at the bottom of the page.

  • I'm very frustrated with Windows Update after receiving the error code 80070005

    After receiving the error code 80070005 for these last months.  I tried several suggested corrections but have not been able to get updates either.  My operating system is Vista Ultimate 32-Bit Windows operating system and have service pack 2 installed.  any help would be appreciated

    Hello

    As I said that it is a very difficult issue to resolve.

    Did you use all of these methods, including the last link to the other thread?

    If you have used all then possibly an InPlace upgrade/repair Installation might
    help that allows to maintain the programs and data backups although redundant
    are always a good idea.

    You can use another DVD that aren't copy protected but you you need to own
    Product key. It must be the same version 32 or 64 BIT Vista OEM. Also the system
    machine to usually sell the cheap disk since you already own Windows. Don't forget to make a
    good backup or 3 (security in redundancy).

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-happened-to-the-recovery-console

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    =====================================

    If nothing works then, you can use BING or Google and search for all types of suggestions
    many whom will be totally false.

    Perhaps the best choice is a new installation. You can use copy and paste to the backup
    the data on CD, DVD, or USB drives.

    I hope this helps.

  • A 6s Iphone can be fixed after entering the date of 1970, which is a problem of

    My friend was on Facebook and reading a post that suggested that if you change the date on your Iphone 6 s to 1970 he would change the screen to a retro mac Apple symbol, however the phone stopped working. After what happened to my friend google this problem and it seems to me that it is a known problem in the phone. This phone can now be fixed? If this isn't the case, Apple will replace the phone, which is only 2 months old?

    The only chance to solve that you would put it in DFU mode and try to restore again.

    Check out this article to help the user to this topic:

    I put my iOS device to January 1, 1970...

    If this does not work, only Apple could be able to get your device to relive again.

    Find an Apple authorized service provider

  • What pins to use to receive the data from the PDS ELITE RS485 with the PXI-8431/2?

    Hello!

    I use the PXI-8431/2 to read data from the flow meter PDS ELITE (Modbus RTU). Receiving data, the RS485 protocol request to terminals 4 and 5, but this configuration does not seem to work. When I connect the RS-485 converter USB of Microflex I get the data correctly, so somehow between the PIN lay and PXI this problem there.

    Can someone help me?

    See you soon,.

    Steven

    Hello Steven,

    I think that what was Hossein trying to send you is the following:

    How to connect and configure a device with RS-485 2-wire

    Can you also tell me a little more what you use to read the data? What environment. You have 2-wire or 4-wire Modbus RTU?

    Kind regards

  • BB10 - blackberry.invoke.invoke - set up an application to receive the data passed

    Hello

    because there is not any application on the Alpha of Dev BB10 I wanted to create a few test-app to do similar things. Is there documentation on how to set an application to receive and process the 'data' past object with the code according to from here:

    // open another application that understands custom data
        blackberry.invoke.invoke({
            target: "another.app.that.handles.custom.json.data",
            type: "text/plain",
            data: "{'myData': 'A string I pass to another app'}"
        }, onInvokeSuccess, onInvokeError);
    

    Kind regards.

    Hello

    thx a lot to connect me to this example. That's really what I was looking for. It would be nice to have these resources pinned in the documentation of the API as well.

    Kind regards.

  • Can I recover my favorites After erasing the data?

    I had accidentally erased my data for Firefox on my android phone and lost all my favorites. I got the app moved to my SD card before but did not synchronize my information. Is it possible that I can restore to an earlier date or save anything at all? Thank you

    Erases data from Firefox should not impact bookmarks if you used Firefox interface.

    If you have used Android settings allows you to delete data or uninstalled and reinstalled, then the data are missing.

  • Is it possible to fix your iPhone 6 after setting the date and time to January 1, 1970?

    I saw something on the internet that says your iPhone 6 would do something cool if the date to January 1, 1970. I did it and my phone does not now and is constantly reset. If anyone here can help me, please let me know.

    Thank you!

    Hi, try a DFU restore.

    Someone has solved the problem by removing the sim card, I have not tried, but you can give it a shot.

    The last solution is to let the battery discharge, but I do not recommend this.

    In any case the best solution is to make an appointment with the Apple Genius Bar, you'll probably helped.

  • VIX file in the user interface designer receives the data from the Web service application that communicates with the SQL server database

    I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.

    This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.

    Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?

    There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")

    Please help me ASAP!

    Thank you

    Ivan

    I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.

    It's important to create the system DSN if you want your VI of web service to communicate with the database.

    PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.

  • Linux - breaks down during the phone call after receiving the notice of someone who comes online

    Hello! Having a problem with Skype 4.2.0.11 for Linux.

    This happened to me twice today: during a phone conversation (I had dialed a phone number), after that Skype gave me a notice saying a contact had been online, the cut received phone call and Skype crashed. Ideas for solutions?

    I use Ubuntu 12.04, 64-bit, and once again the version of Skype is 4.2.0.11, please let me know if there is more information I could give that would help. Thank you!

    Sorry for typo's fault, I can't edit any longer after a day or two. Here's the good:

    sudo apt - get install libasound2 - plugins:i386

    Thank you

    Marco

  • close application after receiving the push

    Hello

    is it somehow possible to check if they received a big boost, if the application has been closed or open? When my application is closed, the message to push, she keeps open like an active frame. Would be nice to close somehow if, after receipt of the request when it wasn't open.

    The best

    bert2002

    OMG it's so true. I did not see. I'm really surprised that Blackberry covers really everything. Very good work, and it will continue. So much changed from BB6. Looks pretty sweet and is very useful for developers!

    Here is the direct link if someone finds this thread: https://developer.blackberry.com/html5/documentation/exiting_after_processing_push_message.html

    The best

    bert2002

  • Tungsten only synchronize with Outlook 2003 after receiving the new laptop

    My laptop previous dead so my IT dept moved my data to a new laptop.  Our programs and data are stored on separate drives.  Palm software & data is stored on the drive program, so I lost everything related to my Palm.  I reinstalled Hotsync Manager from the original CD, but it won't sync with Outlook.  I've also upgraded to v4.1.4 but that did not help.  I also searched the Outlook Conduits by clicking Hotsync > custom in the Palm Desktop program.  I don't see the listed Outlook conduits.  When I run the Hotsync, the Palm Desktop Manager and the PDA will be synchronized, but there are nominations that have been stored in my Outlook pst file which must be synchronized with the PDA.

    New operating system is Win XP Pro

    When I reinstalled Palm Desktop, I don't remember being invited to select Synchronize with Outlook instead of Palm desktop.  I had to reinstall software so much with this refresh mobile, I might have forgotten.

    In reviewing other synchronization assignments, I saw the recommendation for conduit PIM synchronization.  I was not able to find it.

    Before upgrading to v4.1.4, I tried to re - install the CD but received a message to the effect that "the installed version is newer than the version on the CD.  The only option was to click on "OK".

    Since my first posting 5/29, I found another announcement with instructions to search for a folder on the CD called 'PostInstall '.  In this folder is an exe file called OutlookSwitcher.exe.  After running this file, I was able to switch to Outlook of Palm Desktop.

    Now, if I can stop the Palm to lock him up.  But that belongs to another forum.  It might be time to replace the pda.

    This issue can be closed... thank you for your help.

  • The original loop iteration after receiving the trigger of the PXI-6652 pulse

    Hello world

    I apologize if this has been answered somewhere else, but I'm having a hard time finding examples and tired after a long day of work.

    in any case, I use a PXI chassis with a PXI-7854R FPGA Board and module synchronization PXI-6652.  I have the FPGA biphasic pulses being generated at 8 analog channels.  I want to be able to do is to send a trigger (say at 1 Hz) for the PXI-6652, which begins at the exit of the biphasic pulse on the FPGA.  I'm running the FPGA through a host program as the variables on biphasic wave will change based on the current experience.

    So, in short, I was wondering how to generate a trigger of the PXI-6652 pulse and then use this trigger in a host of VI to start an iteration of a loop.  It seems simple enough, so any help would be appreciated.

    Thank you, and I can post the code tomorrow if necessary.

    To answer your second question, Yes, the driver NOR-SYNC 3.3 is available for download and use with LabVIEW 2011.

    As far as use the PXI-6652 to start the acquisition on an FPGA VI, we have enough good examples provided with LabVIEW that will show you how to proceed.  To actually generate a trigger with NO-Sync, there are several examples in the Finder for example of NOR (help > find examples) which send a trigger one of the PFI lines to be used with the other modules.  You can search for OR Sync and they all appear here.  You need this driver installed first before you see anything, however.

    Also, if you look through the viewfinder of the example under Hardware Input and Output > R Series > FPGA Fundamentals > triggers and guard dog, you will find an example of triggering good enough it for use in your FPGA code.

    This example uses NO-Sync to trigger a device of the M series, which is not relevant to what you are doing (he uses DAQmx), but there is a very good example of generation OR-Sync trigger here who I think can help.

  • Someone took control of the PC, after receiving the phone call scam

    My family got a call from someone who said they could solve its Windows problems-she had not reported it. They he kept on the phone for an hour, asking him do things on his PC, then it said to turn and they would be back ring. She could see the displacement slider and study programs. I checked this forum (brilliant ease) and after reading some posts I advised her to stop everything and ring of his bank to check its details would be safe. The hoaxters rang her back, was annoyed when she told them that she believed they are fraudsters. They claimed to be true and asked for the money for the work they had done. She hung up. They rang again and hung up when her husband answered. What are the measures that it should take now? Can report it? These people are not the phone ring every few minutes. My rels do not meet good course but it is ruining their day.

    Hello

    I suggest you to report an Internet Crime complaint, see link below: http://www.ic3.gov/default.aspx

    You can also try communicating with the local authorities to report the problem.

  • V313w All In One having some sort of tantrum after receiving the new ink

    After installing new cartridges my printer will print test and scanned images in color pages, but not the images of my office, including full-color documents. I tried several deep clean, reboot, and reinstall the cartridges with no luck. My ink level is nearly full, shows a strong wireless signal, and I get no error message. I'm no computer wiz and have no idea what else to try. I'm about to take on the back for a bit of target practice. If anyone can check it?

    Cheriserich,

    Start, Control Panel, devices and printers, right-click on your printer, on the left, click Printer Preferences. Make sure it is checked to use all available ink.

    Rick

Maybe you are looking for

  • Status Bar disappears after iOS updated 9.3.2 at level

    Given that I have improved my 6s iPhone to the latest iOS (9.3.2) my status bar disappears at random (see photo below). If I lock the phone and unlock the status bar returns. All this experience? Is there a solution? Thank you

  • HP SLATE 7 MORE DO NOT USE SD CARD

    I'm new in the world of the Tablet, I'm good with computers. For the life of me I can't get my HP SLATE 7 MORE use the mini 32 GB SDHC card, I inserted. I want to store my apps, movies and others on the SD card. So far I found no option to transfer t

  • IPhone virus 6s...

    Hi I have the impression that my iPhone 6s is seen virus... Is this possible? As I mail, if there is an attachment, ters a few small file with it. Then you can help! Moreover, my camera does not sometimes...

  • Just installed Windows Mail. Is it possible to move email from my webmail and have both in Windows Mail and the web?

    original title: Windows Mail just set up Windows Mail, and it took the e-mails out of the Box in my e mail ordinary. Is it possible to get back to my original email messages and they come for the two boxes in?  Thank you

  • How to delete items hidden around the visible area of PDF?

    is there a way to remove easily abject (images, text...) around the visible area of PDF? See here: http://screencast.com/t/TCUMZENn4Nj as you can see in the screenshot above, are not only the extra images (its different forms and sizes at random page