Android.cfg file not created - BB10 Push Notification

I'm enbaling push notification in my android app BB10 runtime. I'm following this doc to implement the push. I developed the Android using Novell project. I tried different ways to create the file cfg under bar.

  1. Before you create the apk, added the cfg file in the root of the project name of the application (tried naming as android.cfg also).
  2. Using this apk, I generated the .bar file, but Android folder, res folder and apk file do not exist, cfg file is not exist.
  3. Then I tried to add file cfg under bar file after you have created the apk but before signing bar leader, but I started getting the following error:
Error: No manifest.
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at net.rim.tools.signing.SigningMain.main(SigningMain.java:72)
Caused by: java.lang.Exception: java.lang.RuntimeException: No manifest.
        at net.rim.device.codesigning.barsigner.BarSigner.if(Unknown Source)
        at net.rim.device.codesigning.barsigner.BarSigner.main(Unknown Source)
        ... 5 more
Caused by: java.lang.RuntimeException: No manifest.
        at net.rim.device.codesigning.barsigner.BarSigner.try(Unknown Source)
        ... 7 more

I see a lot of post where push is activated with success in app Android Runtime BB10. What I'm doing wrong here?

Hey Subha_Murali,

Follow the instructions on this page or complie the sample application. It always works for me flawlessly!

Tags: BlackBerry Developers

Similar Questions

  • Android.cfg BB10 push notification problem

    Hello, I have a real problem to make this android.cfg to put in the app.bar file is created but in white and when I try to put it manually with a zip or rar to change, I got an error like the .bar is broken, can someone tell me the correct form for this archive works and not to put it manually?

    PS: I'm in Eclipse, a porting android with MCG. I just want to make the archive to create with the server info I put in root next to the manifesto and alaso tried to put next to the apk in the bin folder.

    Thank you for your response rincethomas33, I couldn't find your way, but I found the tool that you sign the .bar you can put the 'myapp.cfg' configuration settings in advance

    Thanks again for your response.

    Ricardo Marquez

  • BB10 Push notification: PushPayLoad

    I'm developing a c# application that can send a push notification to BB10 devices using Blackberry Internet Service, I found a code it works well, however I don't know how to add custom to the push, data data that can be access with the push as pushPayLoad and used that is when user click on the push notification , it will run my native application bb10 then navigate to the user window or any other open window as required bussiness

    Here are my c# code:

    HttpWebResponse HttpWRes = null;
                HttpWebRequest HttpWReq = null;
    
                string pin = "push_all";
                string applicationID = "ApplicationID";
                string BOUNDARY = "ASDFaslkdfjasfaSfdasfhpoiurwqrwm";
                string msg = "Good morning"; // the message to send
    
                string userName = "ApplicationID";//"YOUR_APPLICATION_ID";
                string userPW = "YourPassword";//"YOUR_PASSWORD";
    
                string url = "https://pushapi.eval.blackberry.com/mss/PD_pushRequest";
    
                HttpWReq = (HttpWebRequest)WebRequest.Create(url);
    
                //SetProxy(HttpWReq); //if proxy needed, use this
    
                HttpWReq.Method = ("POST");
                HttpWReq.Accept = "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2";
                HttpWReq.KeepAlive = true;
                //HttpWReq.Credentials = new NetworkCredential(userName, userPW);
    
                HttpWReq.PreAuthenticate = true;
                HttpWReq.ContentType = "multipart/related; boundary=" + BOUNDARY + "; type=application/xml";
    
                SetBasicAuthHeader(HttpWReq, userName, userPW);
                StringBuilder dataToSend = new StringBuilder();
    
                dataToSend.AppendLine("--" + BOUNDARY);
                dataToSend.AppendLine("Content-Type: application/xml; charset=UTF-8");
    
                dataToSend.AppendLine("");
                dataToSend.AppendLine("http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd\">");
                dataToSend.AppendLine("");
                string myPushId = DateTime.Now.ToFileTime().ToString();
                string deliverBefore = DateTime.UtcNow.AddMinutes(5).ToString("s", System.Globalization.CultureInfo.InvariantCulture) + "Z";
                dataToSend.AppendLine("");
    
                dataToSend.AppendLine("
    "); dataToSend.AppendLine(""); dataToSend.AppendLine(""); dataToSend.AppendLine(""); dataToSend.AppendLine("--" + BOUNDARY); dataToSend.AppendLine("Content-Type: text/plain"); dataToSend.AppendLine("Push-Message-ID: " + myPushId); dataToSend.AppendLine(""); dataToSend.AppendLine(msg); dataToSend.AppendLine("--" + BOUNDARY + "--"); dataToSend.AppendLine(""); Stream requestStream = null; string pushResult = ""; try { requestStream = HttpWReq.GetRequestStream(); } catch (Exception ex) { pushResult = "Push failed! " + ex.ToString(); } byte[] outStr = new UTF8Encoding().GetBytes(dataToSend.ToString()); requestStream.Write(outStr, 0, outStr.Length); requestStream.Close(); try { HttpWRes = (HttpWebResponse)HttpWReq.GetResponse(); } catch (Exception ex) { //push failed } if (HttpWRes != null) { HttpWRes.Close(); }

    What are the changes that I must code to send data as well as the thrust as profileId = 123?

    After much trial and error, I finally found the answer: adding "msg" I can add all payload elements I want:

    MyStringBuilder.AppendLine ("profileId"+":" + "AAB123");

    MyStringBuilder.AppendLine ("postId"+":" + "4567");

    MyStringBuilder.AppendLine (msg);

  • 'Error when accessing the preference files' - no preference files not created

    This is similar to another recent problem.  I get two error messages when you attempt to start the AE:

    Screen Shot 2016-06-23 at 12.19.10 PM.pngScreen Shot 2016-06-23 at 12.19.12 PM.png

    When I go to users > library > preferences > adobe > consequences, that's what I see:

    Screen Shot 2016-06-23 at 12.19.33 PM.png

    It seems that AE did not create folders for the last update?  The my computer for missing files search turns up no results.  AE uninstalling and reinstalling does not solve the problem.

    Please visit this link.

    How to display the folder ~/Library Mavericks and Yosemite. Macworld

    After completing the information on the link, the problem persists. And after all sorts of solutions, I just deleted the folder 13.8 and the AE iniciates perfectly.

  • PDF file not created not, not found the police, very error.

    I was printing a map of gogle maps, but instead to create a PDF file, it created a file of notes that had, not created PDF file, fonts not found, error very.

    This problems hapends just once and everything works fine now. But I would like to know what happened.

    Thank you.

    I found the problem and is that internet explorer is tryng to create a very when I print a web page. When I print a page in the image appears

    the characters that the ie is trying to solve. Do you know something?

  • file not created when you use export to database

    I am creating a MAxL script to export the database but for some reason, the text file is empty (manual export works)

    Here is the script I use, any ideas on why it does not export the data

    set the error level.

    / * Connect to Essbase * /.

    Login "user1" 'password' on 'servername ';

    change the database for "Bud". "Budget" start archive file 'test ';

    database export "Bud". "Budget of all the data in the columns of data_file 'D:\\Hyperion\\essbase\\app\\Bud\\BUdtest1.txt '; »


    change the database for "Bud". "Budget of ' complete Archives;

    "exit";

    Not sure why you do the archives begin and end. When you perform an export, it locks the database. It could be the cause of your problems.

  • DG broker configuration file not created at the backup site

    Hello

    I try to configure dataguard for db (10.2.0.1) primary, standby is created as stby

    I configured a third node to the observer, I did the TNS entires and verified connectivity

    When I expressed

    ALTER system set dg_broker_start = True scope = both;

    on both nodes, the configuration files have been created at the primary site

    SQL > show parameter DG_BROKER_CONFIG

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    dg_broker_config_file1 string C:\ORACLE\PRODUCT\10.2.0\DB_1\
    DATABASE\DR1PRIMARY. A3
    dg_broker_config_file2 string C:\ORACLE\PRODUCT\10.2.0\DB_1\
    DATABASE\DR2PRIMARY. A3


    I checked the

    but the stby node

    SQL > show parameter DG_BROKER_CONFIG

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    dg_broker_config_file1 string C:\ORACLE\PRODUCT\10.2.0\DB_1\
    DATABASE\DR1STBY. A3
    dg_broker_config_file2 string C:\ORACLE\PRODUCT\10.2.0\DB_1\
    DATABASE\DR2STBY. A3

    There is no config file even though the parameter gives suggests that it had been created

    how I created these files

    without them I won't be able to add stby on the watcher node

    The config seems mostly OK. Suggest you add another roll forward Eve sign in primary and standby, then switch connects to the primary and see what you get errors.

  • file not created by UTL filr

    PROCEDURE pr_exercise)
    p_userid VARCHAR2,
    p_filename VARCHAR2,
    p_logfile VARCHAR2
    )
    IS

    CURSOR c_exercise
    IS
    SELECT ordr.corp_name, e.exer_dt, ordr.corp_name, o.soc_sec, o.name_first,
    o.name_mi, o.name_last, u.ml_retail_account, e.exer_dt, e.exer_type,
    e.opts_exer,
    (SELECT g.opt_prc
    OF grantz g
    WHERE g.grant_num = e.grant_num AND g.user_id = e.user_id),
    (SELECT SUM (d.shrs_sold)
    TO have d
    WHERE d.exer_num = e.exer_num AND d.grant_num = e.grant_num),
    e.shrs_swap, e.mkt_prc, (NVL (e.opts_exer, 0) * NVL (u.opt_prc, 0));
    (NVL (e.opts_exer, 0) * NVL (e.mkt_prc, 0));
    (SELECT SUM (f.commission)
    OF feeschgd f
    WHERE f.exer_num = e.exer_num AND f.user_id = e.user_id),
    NVL (u.tot_fee, 0), NVL (u.tot_tax, 0),
    NVL (ordr.multi_curr_handling_fee, 0),
    DECODE
    (u.exer_type,
    4, DECODE
    (NVL (u.distribution_method, 'X'),
    "X", NULL,
    pk_xop_citibank_forex.fn_get_netamount
    (u.user_id,
    u.exer_num,
    u.soc_sec,
    u.sar_cash_amount,
    NVL (u.comm_value, 0),
    NVL (u.tot_fee, 0),
    NVL (u.multi_curr_handling_fee,
    0
    )
    )
    ),
    ((NVL (u.shrs_sold, 0) * NVL (u.mkt_prc, 0)))
    -((u.opts_exer * NVL (u.opt_prc, 0)))
    + DECODE (NVL (u.shrs_wthld_for_taxes, 'n'),
    'Y', 0,
    ROUND (NVL (u.tot_tax, 0), 2)
    )
    + NVL (u.tot_fee, 0)
    + NVL (u.multi_curr_handling_fee, 0)
    + NVL (u.comm_value, 0)
    )
    -NVL (u.backup_withholding, 0)
    )
    ),
    ordr.ml_currency_code, ordr.foreign_currency_code,
    ordr.distribution_method, e.user_id, ivr_plan_num, u.tot_fee,
    u.exersource, xe.plan_type, e.exer_dt,
    DECODE (u.plan_type,
    0, "ISO."
    1, "NONQUAL."
    2, "RES,"
    3, "SAR."
    4, "RSU",.
    5, "UCR."
    6, 'DEU ',.
    7, 'PS ',.
    8, 'CENTRAL UNIT. "
    NULL VALUE
    ),
    p.plan_id, e.create_dt,
    -: blpt_pl_ef_dt,
    FC.ivr_plan_num
    E exercise.
    xop_exercise xe,
    o holder of options,
    tb_ml_exer_upload u,
    tb_xop_order_manager_t ordr,
    planz p,
    tb_fc_compy fc
    WHERE e.exer_num = xe.exer_num
    AND e.user_id = xe.user_id
    AND e.opt_num = o.opt_num
    AND e.user_id = o.user_id
    AND e.exer_num = u.exer_num
    AND u.user_id = e.user_id
    AND e.exer_num = ordr.exer_num (+)
    AND e.user_id = ordr.user_log (+)
    AND e.plan_num = p.plan_num
    AND e.user_id = p.user_id
    AND (NVL (e.order_num, 0) > = 0 AND e.mkt_prc > 0)
    AND e.user_id = TRIM ("CMSGGL_USER")
    AND u.user_id = fc.compy_passwd;

    file_out_portrait UTL_FILE. TYPE_DE_FICHIER;
    file_out_midas UTL_FILE. TYPE_DE_FICHIER;
    v_portrait_str VARCHAR2 (32767).
    v_midas_str VARCHAR2 (32767).
    v_is_firstline BOOLEAN: = TRUE;
    v_ivr_plan_num VARCHAR2 (30);
    v_midas_filepath VARCHAR2 (100);
    v_portrait_filepath VARCHAR2 (100);
    v_midas_filename VARCHAR2 (100);
    v_portrait_filename VARCHAR2 (100);

    BEGIN

    DBMS_OUTPUT. PUT_LINE ('SUCCESS1');
    pr_batch_feed_errors (p_logfile,
    "Generation of exercise feed for the user:' | '. p_userid
    );

    DBMS_OUTPUT. PUT_LINE ('SUCCESS2');

    SELECT MIDAS_FILE_PATH,
    PORTRAIT_FILE_PATH,
    MIDAS_FILE_NAME,
    PORTRAIT_FILE_NAME
    BY v_midas_filepath,
    v_portrait_filepath,
    v_midas_filename,
    v_portrait_filename
    OF tb_xop_batch_job_info
    WHERE job_id = 2;

    DBMS_OUTPUT. PUT_LINE ('SUCCESS3');
    pr_batch_feed_errors (p_logfile,
    ' midas_file_path:' | v_midas_filepath |
    ' portrait_file_path:' | v_portrait_filepath |
    ' midas_file_name:' | v_midas_filename |
    ' portrait_file_name:' | v_portrait_filename
    );

    file_out_portrait: =.
    UTL_FILE. FOPEN (v_portrait_filepath, p_filename, 'W');
    file_out_midas: =.
    UTL_FILE. FOPEN (v_midas_filepath, p_filename, 'W');

    DBMS_OUTPUT. PUT_LINE ('SUCCESS4');

    FOR v_exercise IN c_exercise-(v_ivr_plan_num)
    LOOP
    DBMS_OUTPUT. PUT_LINE ('SUCCESS5');

    v_portrait_str: =.
    /*('EXSOP')
    ||' /+/'
    || NULL VALUE
    ||' /+/'
    || v_company.ivr_plan_num
    ||' /+/'
    ||' CMS'
    | v_company.compy_acronym
    |' _USER'
    ||' /+/'
    | v_company.compy_nme
    ||' /+/'
    || NULL VALUE
    ||' /+/'
    || v_company.ml_sec_num
    ||' /+/'
    | v_company.compy_symbl
    ||' /+/'
    || fn_get_fmv_rpt (sysdate, 'CMS'
    | v_company.compy_acronym
    (| '_USER')
    ||' /+/'
    || v_company.fa_num
    ||' /+/'
    || v_company.fa_name_hnw
    ||' /+/'
    || v_company.maint_in_progress_flag
    ||' /+/'
    || v_company.vc_branch_prefix
    ||' /+/'
    || NULL VALUE
    ||' /+/'
    || v_company.usr_winlog_id
    );*/

    UTL_FILE. Put_line (file_out_portrait, v_portrait_str);
    -Check if Midas must be performed
    IF fn_is_first_sat
    THEN
    -Search header

    IF v_is_firstline
    THEN
    pr_batch_feed_errors (p_logfile,
    'Head of Midas '.
    );
    v_midas_str: =.
    ('Name' Corp.
    || Chr (9)
    ||' SSN'
    || Chr (9)
    ||' First name"
    || Chr (9)
    ||' First name"
    || Chr (9)
    ||' Family name"
    || Chr (9)
    ||' Brokerage account.
    || Chr (9)
    ||' Exercise date"
    || Chr (9)
    ||' Exercise of Type'
    || Chr (9)
    ||' Options exercised"
    || Chr (9)
    ||' Grant Award '
    || Chr (9)
    ||' Shares sold '
    || Chr (9)
    ||' Shares traded '
    || Chr (9)
    ||' Exercise price"
    || Chr (9)
    ||' Cost of exercise"
    || Chr (9)
    ||' Proceeds from the sale
    || Chr (9)
    ||' Commission'
    || Chr (9)
    ||' Total taxes
    || Chr (9)
    ||' Total tax '
    || Chr (9)
    ||' Multi currency expenses '
    || Chr (9)
    ||' Net product
    || Chr (9)
    ||' Currency code of ML'
    || Chr (9)
    ||' Foreign currency code '
    || Chr (9)
    ||' Distribution method '
    || Chr (9)
    ||' User ID '
    || Chr (9)
    ||' Type of grant.
    || Chr (9)
    ||' Plan No. '
    || Chr (9)
    ||' Source'
    || Chr (9)
    ||' Plan type"
    || Chr (9)
    ||' Exercise the Num'
    );

    UTL_FILE. Put_line (file_out_midas, v_midas_str);
    v_is_firstline: = FALSE;


    END IF;

    v_midas_str: =.
    (v_exercise.corp_name
    || Chr (9)
    || v_exercise.soc_sec
    || Chr (9)
    || v_exercise.name_first
    || Chr (9)
    || v_exercise.name_mi
    || Chr (9)
    || v_exercise.name_last
    || Chr (9)
    || v_exercise.ml_retail_account
    || Chr (9)
    || v_exercise.exer_dt
    || Chr (9)
    || v_exercise.exer_type
    || Chr (9)
    || v_exercise.opts_exer
    || Chr (9)
    || v_exercise.opt_prc
    || Chr (9)
    || v_exercise.shrs_sold
    || Chr (9)
    || v_exercise.shrs_swap
    || Chr (9)
    || v_exercise. Mkt_Prc
    || Chr (9)
    || v_exercise.exer_prc
    || Chr (9)
    || v_exercise.shrs_prc
    || Chr (9)
    | v_exercise.comm_value
    || Chr (9)
    || v_exercise.tot_fee
    || Chr (9)
    || v_exercise.tot_tax
    || Chr (9)
    || v_exercise.multi_fee
    || Chr (9)
    | v_exercise.Net_proceeds
    || Chr (9)
    || v_exercise.ml_currency_code
    || Chr (9)
    || v_exercise. Foreign_Currency_Code
    || Chr (9)
    || v_exercise. Distribution_Method
    || Chr (9)
    || v_exercise.user_id
    || Chr (9)
    || v_exercise.grant_type
    || Chr (9)
    || v_exercise.plan_no
    || Chr (9)
    || v_exercise.source
    || Chr (9)
    || v_exercise.plan_type
    || Chr (9)
    || v_exercise.exer_num);

    UTL_FILE. Put_line (file_out_midas, v_midas_str);

    END IF;


    END LOOP;

    pr_batch_feed_errors (p_logfile,
    "Created in exercise feed for the user.
    || p_userid);
    -classify Midas and Portrait
    UTL_FILE. FCLOSE (file_out_portrait);
    UTL_FILE. FCLOSE (file_out_midas);

    EXCEPTION
    WHILE OTHERS
    THEN
    pr_batch_feed_errors
    (p_logfile,
    "Critical error! Code '
    || SQLCODE
    || ':'
    || SQLERRM
    || "at".
    || USER
    || 'pk_xop_batch_feeds.pr_exercise '.
    );


    END pr_exercise;

    Hello

    Please read SQL and PL/SQL FAQ

    If you have a problem of performance relating to SQL and PL/SQL FAQ

    In addition, when you place the code or exit please include it between two lines starting with {noformat}

    {noformat}
    
    i.e.:
    {noformat}
    

    {noformat}
    SELECT...
    {noformat}

    {noformat}
    
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • Manifest file not created when publishing...

    I'm trying to publish my Captivate class with the value in the form of files zipped release. I did the course SCORM compliant as far as I can tell, but when I publish the course, there is no Manfiest file so the course doesn't work on our LMS. Anyone know why there is no manifest file? I checked the Zip files and HTML export in the form of publishing... and continues to publish just two .swf files and no imsmanifest.xml file

    I just upgraded to Captivate 3, but it seems that my problem is solved.

    I ended up updating all Adobe products on my computer and all of a sudden, all the right files are published! So I guess updates fixed this. Thanks for your help!

  • IOS app do not compile in phonegap build after adding support for Push Notifications

    As the title says, I have an app for android and iOS using phonegap to build and push-plugin to the repository of the NPM. It worked perfectly for android, but for iOS, the events have not fired. Then I read that the AppID should have the active possibility of push notifications, so I added a development certificate and certificates and files of mobile provision changed.

    After that, the application is not compile more. I also added a certificate SSL Production to my App ID and certificate and files available mobile since I read the development of those who do not work with Phonegap, built on an old post, but that no longer works.

    Am I missing a step to make it work for the iOS with Phonegap Build? Thanks in advance

    Looks like commissioning your profile does not include your developer certificate. Try re-creating your provisioning profile.

    Maybe useful post:

    IOS create problem certificate does not match profile

  • Activate the Push Notifications on door Android

    I have questions about the push notification in Android Application (.apk door to .bar).

     


    After reading "creating Push-Enabled Android Apps" and following the steps:

    1. Generate the android app and the sign;
    2. Porting of the apk using command line tools (apk2bar.bat);
    3. Add android.cfg in .bar  
      
      
         
            MY_APPID
            http://cpMY_APPID.pushapi.eval.blackberry.com
         
      
      

      and include clear permission (Entry-Point-System-stock: _sys_use_consumer_push)

    4. Sign the .bar using command line tools (batchbar - sign .bat);
    5. Installation using command line tools (blackberry - deploy.bat) .bar on BlackBerry (Dev Alpha B);

    QUESTIONS

    1. The steps are correct?
    2. On the device, the application must appear in the notification configuration? (Settings > Notifications > Notifications / alerts)
    3. Send the process, statements:
      Response CODE: 1001
      Response DESC: The request has been accepted for processing.
      

      It's okay?

    1 yep

    2. notifications! = Push. If you have any questions about the integration of Notifications please report it to the Android Council

    3. it is the answer for a valid push message sent

  • Android Push Notification

    Hello! Because there is no feature for Android Push Notification DPS.

    Are there any good 3rd party tool to use for the Push Notifications in Android and easy to implement for the APK Android?

    I think its very important that users know what happens in their applications.

    Best jan

    I'm not aware of everything and notes that "implement for the APK Android" is against the terms of use for DPS. You shouldn't be trying to change the .apk file downloaded from the App Builder.

    Neil

  • BB10 - personalization of Push Notification

    Hi all. Recently, we test an app with our client. The application will receive push notification when there is new claim being created so that the user can be notified and then they can approve/reject the claim.

    When comes the push, there is asterisk on the app, reduced app icon and also a message will be sent to the hub. But the feedback from users during the tests, they prefer to be

    1. have the asterisk on the app icon / minimized app but do not have the message sent to the Hub

    2. If a user clicks on a message to display in the hub, it will remove the message current and later in the hub

    Is it possible to do?

    For no 1, I tried not to call Notification in app.textConversionCallback, so there is no message in the hub, but that stop the asterisk appears on the application icon.

    app.parsePayload = function (){
        try{
            if (app.pushService !== null){
                var pushPayload = app.pushService.extractPushPayload(app.onInvokedInfo);
                app.blobToText(pushPayload.data, "UTF-8", app.textConversionCallback);
                app.onInvokedInfo = null;
            }
        } catch (err) {
         alert("Was unable to parse the invoke request.");
      }
    };
    
    app.blobToText = function (blob, encoding, callback) {
        var reader = new FileReader();
        reader.onload = function(evt) {
            // No errors, get the result and call the callback
            callback(evt.target.result);
        };
    
        reader.onerror = function(evt) {
            app.debug("Error converting Blob to string: " + evt.target.error);
        };
        reader.readAsText(blob, encoding);
    };
    
    app.textConversionCallback = function(str) {
        //try to disable this but push is not working
        //notify.hub(str);
    };
    
    var notify = {};
    
    // Add a notification in the Hub
    notify.hub = function(str) {
      var mclaim = JSON.parse(str)
      {
        if(mclaim.empno)
        {
          var pushCount = parseInt(mclaim.workqcnt);
          if((pushCount > 0) && (pushCount > 1))
          {
            var title = "Pending Claims Notification";
            var isAre = "are";
            var claim = "claims";
          }
          if((pushCount > 0) && (pushCount == 1))
          {
            var title = "Pending Claim Notification";
            var isAre = "is";
            var claim = "claim";
          }
          var content = "There "+isAre+" "+parseInt(pushCount)+" "+claim+" pending for approval.";
          new Notification(title, {body: content});
        }
      }
    };
    

    Regarding No 2, is there a function perform the delete action?

    All advice or suggestion will be greatly appreciated.

    Update on the app icon is directly related to the Notification of the HTML5; It is impossible to trigger the icon unless you use the Notification of HTML5.

    You may write an extension to access the following Native API to set the badge (i.e. the Update icon) to the application:
    https://developer.BlackBerry.com/native/reference/core/com.QNX.doc.bps.lib_ref/com.QNX.doc.bps.lib_r...

    To remove the notifications in the Hub, you can either:
    (1) create all HTML5 Notifications with the same tag; This will force a notification never exist in the hub, with the most recent notification overwriting previous reviews; or
    (2) keep track of all active notification tags and delete is used to remove unwanted notifications.
    https://developer.BlackBerry.com/HTML5/APIs/notification.html#.Remove

  • BB10 - customization BB Hub and Push Notification Messages

    Hi all.

    The push notification are push to the notification in the hub of BlackBerry. Is it possible for example to create a new label to a custom in the hub application and have the notification being pushed in the custom label?

    No, it is not possible for third-party applications.  Only some apps approved (such as FaceBook, Twitter and LinkedIn) have had access to their own 'space' in the hub.

  • Signature keys: author.p12 file is not created

    I'm running the installation program to sign my BB10 app, but the author.p12 file is not created

    barsigner. CSK and barsigner.db the file is created, but author.p12 file is not created.

    While creating the files, the control interface gives the result:

    Info: CSK file created.

    Error: null

    Thanks in advance

    Work under WIndows?
    Delete barsigner.csk, barsigner.db of C:\Users\User\AppData\Local\Research In Motion file and try again

Maybe you are looking for

  • e-printing expandable pages

    whenever I have e-print pages of my Tablet wireless to my HP D5560 printr, he finishes the job asked and then said to ofpaper. I put the paper in and it starts to print the pages again.

  • (Redirected) Do not accept the password when connecting

    Have a Dell laptop 15 3520 running Windows 8.1 have been logging in fine and all of a sudden it will not recognize the password. System is configured to connect by using the account of Microsoft and no password. Now, he starts asking a password and c

  • Key used to work, but no more?

    I had some hardware issues so had to do a clean install of Windows 7 Home Premium. I was able to activate Win 7 Home Premium with the license key on the sticker (this has more the automated phone system, no problem), and Windows says that it is authe

  • Smartphones from blackBerry using the storm with ATT or tmobile

    Worded if someone has unlocked the phone and Ben in the light with the suppliers other than Verizon If so how it you please also, I think I know this but he just place EDGE on GSM towers do not service any 3 g service? Also how do you have it unlocke

  • Dysfunction of the multitrack Editor

    Suddenly, none of my audio clips line up with any other audio clips in a multitrack Editor. As in, when I try to move an audio clip beside, under or over another audio clip; simply, it will not automatically align with Audio2 Audio1 as it is supposed