Add headers custom Blackberry push Message (OS 6-7)

Hello

Veuileez tell me how to add the custom headers in Push Blackberry Message in addition to "text/plain", the Blackberry Push Messages work perfectly, but I have to add the custom headers for some information content.

I tried adding headers to the content class to push initiator end but unable to receive connection in object client side in the analysis (bad PushInputStream, connection conn), so please let me know how to do it.

Thank you

The payload is the only place where you have the control to set the data, the rest is standards-based and cannot be customized.

Tags: BlackBerry Developers

Similar Questions

  • How to add a custom menu in the menu system, as the list of Blackberry contacts

    I would like to add a custom menu tinto menu system, such as the list of Blackberry contacts, when users enter in contact list and select the custom menu, it will open my client and send a few s parametertin my application as the contact name, telephone number, please tell me how and what version of the OS can do this.

    It's still not clear to me what you want to achieve.

    You can use http://www.blackberry.com/developers/docs/6.0.0api/net/rim/blackberry/api/menuitem/ApplicationMenuIt... to add a menu item to some system applications, for example the address book. you get a context object, in a BlackberryContact, you can process or use the address book.

    Your second post seems to allude to http://www.blackberry.com/developers/docs/6.0.0api/net/rim/blackberry/api/messagelist/ApplicationInd... , it is used to place small flags with or without the number, such as that used for unread e-mail messages.

  • If I responded to an e-mail by calling the sender, I would like to add a note to the message to record how I respond/Treaty the message. I use to be able to do - I can do it on my Mac?

    Can I add a note to an e-mail message to record how I dealt with him?

    I don't think that you can add notes directly to the messages in the current version.

    Although much less flexible, an alternative is to use "flags". Unfortunately I don't think we can rename or create custom schedules, but if you have a small number of situations you can come up with a personal code for them (e.g. Green to treat, yellow for the waiting, etc.).

    There are several Extensions for Apple Mail, it is possible that some of them have this feature.

  • How do you make sure that a push message happen?

    Hello

    How do you make sure that only a push message arrives to the device? I sometimes feel that the push messages are not received by the device (even if it is connected and the application runs in the for - or background).

    You double-tap and check if a message is already arrived?

    Thank you.

    You can submit a subscription request to the PPG:
    http://docs.BlackBerry.com/en/developers/deliverables/25167/Code_sample_req_subscriptionquery-messag...

  • Does not receive do not push message

    I use BIS push.

    I when I send messages on the server side. I get the success of status while blackberry.push.openBISPushListener and also answer registraion code of rc = 200.

    But I don't get any push on my device.
     
    My code side Server

    It's my PAP message that I post at https://cpXXX.pushapi.na.blackberry.com/mss/PD_pushRequest

    -ASDFaslkdfjasfaSfdasfhpoiurwqrwmContent-Type: application/xml; Charset = UTF-8


    http://www.openmobilealliance.org/tech/DTD/pap_2.1.DTD">



    -ASDFaslkdfjasfaSfdasfhpoiurwqrwm
    Content-Type: text/plain
    Push-Message-ID: 1342518013536

    Test message 2
    -ASDFaslkdfjasfaSfdasfhpoiurwqrwm-

    This is the response message I get from https://cpXXX.pushapi.na.blackberry.com/mss/PD_pushRequest


    http://www.openmobilealliance.org/tech/DTD/pap_2.1.DTD "" >http://cpXXX.pushapi.na.blackberry.com/mss/PD_pushRequest ' sender name = 'RIM Push-Data Service' response-time = "2012-07 - 17 T 09: 42:46Z" > "

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

    My client-side code

    On the recording, I get rc = 200. So I think that my BB is registered successfully

    var port = 21000;
    serverURL = "http://pushapi.na.blackberry.com"; var
    var appID = "XXX-617k3e20yRDmXXXf316r70M4cc13202kXXXX";
    var max = 100;
    var wakeUpPage = "... / push.html";

    function listenToPush() {}
    try {}
    OPS var = {port: port, appId: appID, serverUrl: serverURL, wakeUpPage: wakeUpPage, maxQueueCap: max};
    blackberry.push.openBISPushListener (ops our, onRegister, onSimChange);
    } catch (e) {}
    Alert ("error from BISPushListener:" + e);
    }
    }

    Our function (data) {}
    Alert (Data.Payload);
    try {}
    A code
    return 0; indicate the acceptance of data useful for pushing reliable
    } catch (e) {}
    Alert ("error on receive BISPushListener:" + e);
    }
    }

    function onRegister (status) {}
    If (status == 0) {}
    Alert ("Success");
    } Else if (status == 1) {}
    Alert ("network error");
    } Else if (status == 2) {}
    Alert ("rejected by the server");
    } Else if (status == 3) {}
    Alert ("invalid parameters");
    } Else if (status ==-1) {}
    Alert ("General error");
    } else {}
    Alert ("status unknown");
    }
    }

    function onSimChange() {}
    A code
    }

    Thank you
    PLEASE HELP, BEEN BLOCKED AT THIS STAGE FOR AGES NOW

    Now, I sign up on http://pushapi.na.blackberry.com & http://cpXXX.pushapi.na.blackberry.com»

    I now receive push messages

  • Help needed on the BlackBerry PUSH API

    Hi ALL, I've learned that by using the BlackBerry PUSH API, we can send data to any user of blackberry (beyond the company) (reference: BlackBerry_Push_APIs_Whitepaper.pdf).

    (1) is it necessary to configure BlackBerry Enterprise Server to use the BlackBerry PUSH API.

    (2) using the PUSH API, can we send data or store data or add data to a file in persistent memory on the BlackBerry smartphone.

    Thanks in advance.

    you need a bes

    You can do whatever you want with the received data, which includes adding them to the other persistent memory stuff.

  • Detect and respond to messages from the BlackBerry Instant Messaging by program

    Hello

    Is it possible to programmatically change the State or even meet with instant messages on a third-party application BlackBerry Instant Messaging?

    I was looking around the classes net.rim.blackberry.api.blackberrymessenger. * and extract from the example code of TicTacToe.  My understanding is that it only allows to add an application service (game of tic tac toe) menu the blackberry messenger.  Please correct me if I'm wrong.

    Any information or suggestion would be useful.

    Thank you.

    BlackBerryMessenger is a protocol based on session. Communications are app-to-app, as shown in the example of TicTacToe.

    You can not intercept the communications of another application.

  • Failed to add the custom library group object?

    I recently upgraded computer and reinstalled Livecycle on my new computer. On the new computer, in Livecycle, when you try to add a custom library of objects, object I get the following message:

    "Cannot add the object"name"to the Group of the library."

    I checked and made sure that in the properties of the group, all items "allow objects...". "are checked. The location of the libraries are in my file C:\Program Files (x 86) \Adobe\Acrobat 10.0\Designer 9.0\EN\Objects\ . Any idea what's going on? It will be a huge setback for me! I have to update the custom very often my objects.

    Thanks in advance.

    All of a sudden it just started working. Don't know what happened.

  • How to add an attachment to a message. (Mac)

    Can someone tell me how to add an attachment to a message here?

    I'm trying a newspaper to help find where this problem of hanging of Skype, but I can't see how to tie.

    Please edit your post and now you should see the option to add attachments.

  • The BlackBerry Push service registration process

    I have asked the Services of BlackBerry Push for trials in January last 26 in order to generate an active push application.

    I have not received news about the State of the process.

    How long this process takes usually?

    There has been some delays in recent weeks with the registration of new accounts to push.  The team pushing will get these created as soon as they can.

  • SSL certificate has expired for the endpoints BlackBerry push last Thursday!

    There is a generic cert used for endpoints BlackBerry push Eval expired last Thursday.  My embed code for the push service is the appropriate certificate validation and can no longer send.  I checked several end points of cpNNNN.pushapi.eval.blackberry.com and they all share the same expired SSL server cert (no wonder they are shared, surprisingly it is expired).

    To test:

    OpenSSL s_client-connect cp4714.pushapi.eval.blackberry.com:443

    Expansion: NO
    SSL-Session:
    Protocol: TLSv1.2
    Encryption: RC4 - SHA
    Session ID:
    Session-ID-ctx:
    Master-Key: E6D069A6416C5672A99B5D7FA4482190D03E9E14985FE2EB33AF51C580151200490CB06874412C62DAA945A35EA2BE22
    Key - Arg: no
    Krb5 main: no
    PSK identity: None
    PSK identity hint: None
    Start time: 1402341727
    Timeout: 300 (s)
    Check the return code: 10 (certificate expired)

    Cert server returned:

    Certificate:
    Data :
    Version: 3 (0x2)
    Serial number:
    5b: 49:CB:40:09:A7:D3:FB:72:F2:EE:4 b: 97:39:28:47
    Signature algorithm: sha1WithRSAEncryption
    Issuer: C = US, O is Thawte, Inc., CN is Thawte SSL CA
    Validity
    Not before: Jun 5 00:00:00 GMT 2013
    Not after: June 5, 23:59:59 GMT 2014
    Subject: C = CA, ST = Ontario, L = Waterloo, O = Research In Motion Limited, OU = IT, CN is *. pushapi.eval.blackberry.com

    ETA on when a new server certificate will be installed on endpoints pushapi.eval.blackberry.com?

    Seems now fixed.  New certificates of June 11 00:00:00 GMT through 11 Jun 23:59:59 GMT 2014 2015 are in place.

  • Join the BlackBerry Push Service

    I am trying to integrate pushwoosh blackberrry webworks.

    He said I have to register an appid (https://www.blackberry.com/profile/?eventId=8121).

    could I get more information on the tax or the use of the push service pricing?

    is there a difference for testing and deployment?

    Thank you.

    Hello

    When you register to use the Services of the BlackBerry Push you receive an application ID that can be used to test:

    https://developer.BlackBerry.com/services/push

    There are free and available today from paid services, paid services will vary according to the number of relapses, you must complete. For more information on the paid levels please first try push Services, if the paid layer is required, then you can ask your account to upgrade and work with a team representative of the Push Services on the details on prices.

  • Api 5.0 blackBerry Push service works for any server?

    Hi BlackBerrians,

    I want to use BlackBerry push api available in os 5.0 with our server. Is it possible use the push api for application entrepreneur?

    Hello

    Yes it is possible, that it is supported for 5.0.

    https://developer.BlackBerry.com/services/push/

    For a good start, you can see-

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/push-SDK-using-low-level-APIs/TD-...

  • Record BlackBerry push separate AppID for different Env

    Hi, as we have for the development of software, there are different phases: phase of development, QA test phase and the production phase. After the first version, they could interwine between them.  All of these phases would have servers environments that signify different content provider URL and most other URLS for our application. There might be a couple of QA test environments was at the same time as well.

    I am tyring to understand how we can share the BlackBerry AppID (including the port of push) through different environments

    Starting from this post:http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Invalid-Notify-URL-on-push-from-d..., it would mean that we could have to say blackberry that warn the base url is. That would make sharing across different env almost impossible unless we have a common notify the base URL where different env would be an another relative URL

    Just wonder if someone could share their experiences on this topic. Thank you very much in advance

    I don't think that what you try to do will work. That being said, nothing to stop you writing a small app that receives notifications and sends the http request to the appropriate server based on a query parameter (eg. /notification? = xyx sever)

  • by pushing the overall push message on the screen

    Hello

    I use push notification to display push messages, it works very well.

    But my problem is that my popup message arrives while I open the app, but I want it appears on the screen without having to open the application, and after clicking ok it must open the app.

    any body can help me.

    Thank you.

    Hello

    I use following code to run the ap on the click event of globle push message popup. but I'm not able to run any budy find what wrong with this code.

    UI UiEngine is Ui.getUiEngine ();.
    Screen = new (Dialog.D_OK, SplashScreen_Land.dealTitle1 dialog box,
    Dialog.OK, Bitmap.getPredefinedBitmap (Bitmap.EXCLAMATION), Manager.VERTICAL_SCROLL);
    final dialogue screen = new (Dialog.D_YES_NO, SplashScreen_Land.dealTitle1 dialog box,
    Dialog.OK, Bitmap.getPredefinedBitmap (Bitmap.EXCLAMATION), Manager.VERTICAL_SCROLL);
    screen.setDialogClosedListener (new DialogClosedListener()
    {

    ' Public Sub dialogClosed (final dialog box, final choice dialog box int)
    {
    If (screen.getSelectedValue () is Dialog.YES)
    {
    Boolean isAppOpen = false;
                                
    int modHandle = CodeModuleManager.getModuleHandle ("Sasta");

    ApplicationDescriptor apDes [] = CodeModuleManager.getApplicationDescriptors (modHandle);
                                
    If (apDes! = null)
    {
    Dialog.Alert ("Hi not null");
    ApplicationDescriptor [foreground_apps] is ApplicationManager.getApplicationManager () .getVisibleApplications ();.
                                
    If (foreground_apps! = null)
    {
    for (int i = 0; i)<>
    {
    If (foreground_apps [i]. Equals(apDes[0]))
    {
                                
    isAppOpen = true;
                                
    ID_processus int is ApplicationManager.getApplicationManager (.getProcessId(apDes[0]));.
    int fgprocess_id is ApplicationManager.getApplicationManager () .getForegroundProcessId ();.
                                                                                                                   
    if(Process_ID == fgprocess_id)
    {/ / Dialog.alert ("hiforground");}
    This means that your application has opened and it is in the foreground
    UiApplication.getUiApplication () .pushScreen (new SplashScreen_Land());
                                
    }
    on the other
    {//Dialog.alert ("Hi, background");
    This means that your application is open, but it's the bottom
    Ask now in the foreground
    AppManager ApplicationManager = ApplicationManager.getApplicationManager ();
    appManager.requestForeground (process_id);
                                                                      
    UiApplication.getUiApplication () .pushScreen (new SplashScreen_Land());
    }
                                
    }
                                
    }
                                
    }
                                
    if(!isAppOpen)
    {
                                
    This means that the app is not open, you need to open the application.
    try {//Dialog.alert ("Hi new open");
    ApplicationManager.getApplicationManager (.runApplication(apDes[0],true));
    UiApplication.getUiApplication () .pushScreen (new SplashScreen_Land());
    } catch (ApplicationManagerException e) {}
    Generative TODO catch block
    e.printStackTrace ();
    }
                                                                                                           
    }
                                
                                
                                
    }
    UiApplication.getUiApplication () .pushScreen (new SplashScreen_Land());
    Alert.startVibrate (2000);
    do something that takes a long time
    }
    on the other
    {
    Screen.Close ();
    }

    }
    });
                
                
              
    ui.pushGlobalScreen (screen, 1, UiEngine.GLOBAL_MODAL);
    PersistentStorage_Sasta_High.setTotalMsgCountDec ();
    PushController_Sasta_High.updateIndicator (PersistentStorage_Sasta_High.getTotalMsgCount ());

Maybe you are looking for