Send message push PC

Hi all

I have to develop an application that uses service push, and a feature is the ability to send a push message to (installed on a PC) software for the application installed on the Blackberry.

I am newbie in the development of Blackberry, so my question is simple:

Does anyone know how to send message push from a PC to a Blackberry please?

Thank you for your answers

The Debug Portal is just a web application built on the actual API SDK. The SDK itself is just a set of JAR files and configuration files, that you include in your classpath. You can build any type of application on top of those Java (eg. web app, stand-alone command line app, Swing App, etc...). The SDK is not all Web specific. Take a look at the JavaDoc for the SDK specifically the * Service classes.

Tags: BlackBerry Developers

Similar Questions

  • Unable to send message push on server

    Greetings,

    I managed get record (PIN) for my device id, but I stuck on the development server side, I hope someone could help me

    I've followed these 3 references:

    1. http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Problem-with-SEND-Push-Notificati...

    2. http://supportforums.blackberry.com/t5/Android-Runtime-Development/Not-receiving-push-notification-o...

    3. http://stackoverflow.com/questions/8472331/server-side-problemt-php-push-message-to-blackberry

    But I do not get the result as expected, instead, I always have ERROR CODE 2000 like this:

    Our PUSH-ID: 1401179949.8267
    
    An error has occured
    Error CODE: 2000
    Error DESC: 2000
    
    string(217) " "
    

    The string (217) "" contains:

    
        
    
    

    The code I am using:

            $appid = '4746-6135ee38Dm11ro8094c98i7900xxxxxxxxx';
            $password = 'xxxxxxxx';
            $boundary = "mPsbVQo0a68eIL3OAxnm";
    
            $deliverbefore = gmdate('Y-m-d\TH:i:s\Z', strtotime('+2 minutes'));
            //An array of address must be in PIN format or "push_all"
            $addresses = '';
            foreach ($registatoin_ids as $value) {
                $addresses .= '
    '; } // Open connection $ch = curl_init(); $err = false; $messageid = microtime(true); $data = '--' . $boundary . "\r\n" . 'Content-Type: application/xml; charset=UTF-8' . "\r\n\r\n" . ' http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd"> ' . $addresses . ' ' . "\r\n" . '--' . $boundary . "\r\n" . // 'Content-Encoding: binary' . "\r\n" . 'Content-Type: text/plain' . "\r\n" . 'Push-Message-ID: ' . $messageid . "\r\n\r\n" . '{ "key":"value", "key2":"value2" }'. "\r\n" . '--' . $boundary . '--' . "\n\r"; $url = 'https://cp4746.pushapi.eval.blackberry.com/mss/PD_pushRequest'; // Set the url, number of POST vars, POST data curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_USERAGENT, "SAA push application"); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, $appid . ':' . $password); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: multipart/related; boundary=" . $boundary . "; type=application/xml", "Accept: text/html", "Connection: keep-alive")); // grab URL and pass it to the browser $xmldata = curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); //Start parsing response into XML data that we can read and output $p = xml_parser_create(); xml_parse_into_struct($p, $xmldata, $vals); $errorcode = xml_get_error_code($p); if ($errorcode > 0) { $err = true; } xml_parser_free($p); echo 'Our PUSH-ID: '.$messageid . "
    \n"; if (!$err && $vals[1]['tag'] == 'PUSH-RESPONSE') { echo 'PUSH-ID: ' . $vals[1]['attributes']['PUSH-ID'] . "
    \n"; echo 'REPLY-TIME: ' . $vals[1]['attributes']['REPLY-TIME'] . "
    \n"; echo 'Response CODE: ' . $vals[2]['attributes']['CODE'] . "
    \n"; echo 'Response DESC: ' . $vals[2]['attributes']['DESC'] . "
    \n"; } elseif ($err) { echo '

    An XML parser error has occured

    ' . "\n"; echo '
    ' . xml_error_string($errorcode) ."
    \n » ; echo '

    Response

    ' . "\n"; echo '
    ' . $xmldata . '
    ' . "\n"; } else {echo '}

    An error has occurred

    ' . "\n"; echo ' fault CODE: '. $vals [1] ['attributes'] ['CODE']. "
    \n » ; echo ' error DESC: '. $vals [1] ['attributes'] ['DESC']. "
    \n » ; echo '
    ' . $xmldata . '
    ' . "\n"; var_dump ($XMLDATA); } var_dump ($vals); Return $xmldata;

    where record id, I get is already a correct form without the prefix, which only hurts?

    I finally found the right answer for me, from here:

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/BB-bis-push-PHP-Server-works-on-p...

    Marcboo thanks for the reply.

    And then I change the code below

    stripslashes($message)
    

    TO:

    json_encode($message)
    

    Complete code below, with the necessary adaptations:

    ';
                }
    
                // create a new cURL resource
                $err = false;
                $ch = curl_init();
                $messageid = microtime(true);
    
                $data = '--asdwewe'. "\r\n" .
                'Content-Type: application/xml; charset=UTF-8' . "\r\n\r\n" .
                '
                http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
                
                '
                . $addresses .
                '
                
                ' . "\r\n" .
                '--asdwewe' . "\r\n" .
                'Content-Type: application/json' . "\r\n" .
                        //'Content-Encoding: binary'. "\r\n" .
                'Push-Message-ID: ' . $messageid . "\r\n\r\n" .
                json_encode($message) . "\r\n" .
                '--asdwewe--' . "\r\n";
    
                // set URL and other appropriate options
                curl_setopt($ch, CURLOPT_URL, "https://pushapi.eval.blackberry.com/mss/PD_pushRequest");
                    curl_setopt($ch, CURLOPT_PORT , 443);
                    curl_setopt($ch, CURLOPT_SSLVERSION, 3);
                    curl_setopt($ch, CURLOPT_CAINFO, getcwd()."\cacert.pem");
                    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    
                curl_setopt($ch, CURLOPT_HEADER, false);
                curl_setopt($ch, CURLOPT_USERAGENT, "My BB Push Server\1.0");
                curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
                curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
                curl_setopt($ch, CURLOPT_USERPWD, $appid . ':' . $password);
                curl_setopt($ch, CURLOPT_POST, 1);
                curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    
                $__extra_Headers = array(
                    "Content-Type: multipart/related; boundary=asdwewe; type=application/xml",
                    "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2",
                    "Connection: keep-alive",
                    "X-Rim-Push-Dest-Port: ".$appport,
                    "X-RIM-PUSH-ID: ".$messageid,
                    "X-RIM-Push-Reliability-Mode: APPLICATION"
                );
                curl_setopt($ch, CURLOPT_HTTPHEADER, $__extra_Headers);
    
                // grab URL and pass it to the browser
                $xmldata = curl_exec($ch);
                if($xmldata === false){
                    echo 'Error pada CURL : ' . curl_error($ch)."\n";
                }else{
                    echo 'Operasi push berhasil'."\n";
                }
    
                // close cURL resource, and free up system resources
                curl_close($ch);
    
                //Start parsing response into XML data that we can read and output
                $p = xml_parser_create();
                xml_parse_into_struct($p, $xmldata, $vals);
                $errorcode = xml_get_error_code($p);
                if ($errorcode > 0) {
                    echo xml_error_string($errorcode)."\n";
                    $err = true;
                }
                xml_parser_free($p);
    
                echo 'Our PUSH-ID: ' . $messageid . "
    \n"; if (!$err && $vals[1]['tag'] == 'PUSH-RESPONSE') { echo 'PUSH-ID: ' . $vals[1]['attributes']['PUSH-ID'] . "
    \n"; echo 'REPLY-TIME: ' . $vals[1]['attributes']['REPLY-TIME'] . "
    \n"; echo 'Response CODE: ' . $vals[2]['attributes']['CODE'] . "
    \n"; echo 'Response DESC: ' . $vals[2]['attributes']['DESC'] . "
    \n"; } else { echo '

    An error has occured

    ' . "\n"; echo 'Error CODE: ' . $vals[1]['attributes']['CODE'] . "
    \n"; echo 'Error DESC: ' . $vals[1]['attributes']['DESC'] . "
    \n"; } } catch (Exception $e) { var_dump($e->getMessage()); } exit(); } } ?>

    See you soon

  • Send message push from Server

    I'm looking to integrate the push RIM with our server service.

    I found the code that sends an HTTP POST message to a MDS connection service.  It's simple I can add via our java servlets.

    My question is that I have a MDS connection service installed on my server or RIM provides a server url, we can use for our push messages.

    We are Member of isv blackberry.

    Thank you.

    as a member of the alliance, you can inquire about the push to bis. Ask your representative to the alliance on this issue.

    for bes-push, you need an own bes + mds.

  • deleting outlook express 'send message '.

    I tried to send too many photos (apparently) by e-mail using outlook express.  The server is still sending them 36 hours later.  I now cannot send or receive e-mails, because the 'send message' green category shows that he is trying to send pictures.  How can I delete the whole process of sending these photos and get email working again?   Restore system to previous date did not work.

    Can cause software conflicts (especially the virus scanners)
    Restoration of the system to fail. The best would be to make the system
    Restore in safe mode.

    Have you tried to delete the message from your Outbox?

    See the following article:

    (262052) how to troubleshoot e-mail messages
    who are stuck in your Outbox
    http://support.Microsoft.com/kb/262052/en-us the following articles will give you an idea of the size of the file
    limits imposed by different providers:

    Pushing the limit? Webmail & ISP file size limits
    http://www.unplggd.com/unplggd/overstuffing-the-envelope-webmail-and-ISP-attachment-size-limits-140393
    (scroll down to: "ISP and e-mail provider file attachment size limits")

    What are the ISP email sending limits and other providers?
    http://support.e-zekiel.com/templates/manual/details.asp?ID=31606&fetch=26546

  • How can I change a default contact number to send messages

    Some of my contacts have more than 1 number of cells. In the new IOS, the first time I click on the "Send message" icon, he asked me what number I want to send your message. Next time, it will automatically use the number I chose. But if I chose the wrong number, I can't find a way to reset, and then select a new number of 'send nessage' by default.

    I thought about it. Open the contact, make a pressure farm (3D touch) click the 'send message '. It opens a menu where you can select the default number.

  • send messages to anroids

    I've recently updated to 10.0.02 and unable to send messages to users who have Android?  I have an iphone 5 c

    Hi Dina61,

    Thank you for using communities of Apple Support.

    I see that you have just upgraded to iOS 10.0.2, and you are unable to send messages to users who have Android phones. I guess certainly let that stop you to communicate with people, so I want to assure you that I help you get this problem is resolved.

    Please go to settings > Messages > Send as SMS. Make sure that it is switched on (green). If it is already on, turn off and turn on/off and then on again.

    Once you have done this, please test by sending a message to a user of Android and see if you get the same result.

    For more information, see: iMessage and SMS/MMS

    Have an amazing day!

  • My i.Phone sends messages without my permission.

    my phone trying to send one or more text messages without my approval or knowledge. What number he sends messages or why I don't know.

    Need help

    Hello

    Depending on your operator, it may be normal for activation of iMessage and FaceTime do incur a cost for sending an international SMS message.

    The message is sent in the background of your iPhone (for servers from Apple to the United Kingdom) what implementation of these services. Some carriers do not charge this SMS message, while others do.

  • Unable to send message AT & T - does not connect to the server. Anyone else having this problem?

    All of a sudden I can't send messages on my AT & T account. I get a message that Thunderbird cannot connect to the server (SMTP). Called at & T and they checked all the settings. I can access my email account on Apple Mail and Yahoo (AT & T email provider), and yet I can not send messages on Thunderbird. I can receive but not send.

    I tried deleting the account and the recovery, but that has not helped. Does anyone else have this problem?

    Christ1,

    Thanks for the tips.

    Even set up a new account did not work. Despite AT & you s claim that it was not a problem with their servers and taking me through a number of measures to ensure what was the origin of the problem, he as magically disappeared as soon he came a few hours after all the machinations. So, still do not know what caused it, but it disappeared.

  • Unable to send messages after the accident, the solutions proposed did not.

    Tuesday (April 7), there was an update to 31.6. Thursday, there was an accident. Since that time cannot send messages. The proposed solutions did not work.

    I get the message that the SMTP server does not support the selected authentication.
    I tried the solution mentioned. But nothing helped. I configured the server out on the different types and remove the password as shown. After that, I did the configuration with different types of Setup again. No solution.
    There is not a possibility of webmail. So I'm stuck now.

    There is no problem with incoming messages, they come. This password should be deleted also?

    Any help would be greatly appreciated.

    Greetings,
    AZ58.

    Good. You can then mark the thread as "Solved" Please?
    Thank you.

  • Cannot send messages in Thunderbird since TDS converted my email... . How can I fix?

    Since TDS converted my email, I can no longer send messages in Thunderbird. I checked all the settings and they
    seem to correspond to the correct configuration. It's so frustrating! TDS argues that it is a problem of Mozilla.

    I have no idea what or who is TDS "converted my email" means.
    Can be a little more specific?
    What are "the correct settings?

  • You bird ceased to send messages with attachments or save it in drafts

    When you send messages with attachments, I get the following error:

    The message send failed.
    Could not open the temporary file created November 24, 2014.pdf - 14101501 Dairy Queen Hastings - C:\Users\Rick\AppData\Local\Temp\moz_mapi\Document. Check your setting of "temporary directory".
    When I try to save to drafts:

    Unable to save your message as a draft.
    Could not open the temporary file created November 24, 2014.pdf - 14101501 Dairy Queen Hastings - C:\Users\Rick\AppData\Local\Temp\moz_mapi\Document. Check your setting of "temporary directory".

    There was perhaps a Windows Update a few days before the trouble.

    I can't find "Temporary directory" setting and don't know what to do with it, if I found it.

    You must delete the document in the folder C:\Users\Rick\AppData\Local\Temp\moz_mapi.

    These folders etc are in the "AppData" folder, which is hidden by default.
    You bring up the folders and hidden files.

  • send message not SMS, but only imessage

    Hey,.

    I set up my new mac (backup time capsule if) and I can I only send messages but no text messages. under what settings can I change this?

    Thank you!

    What version of OS are you using? If Mavericks, you must at least Yosemite.

    Continuity requirements transfer procedure

  • After the update to the latest version of iTunes, it includes the error message 'Push Apple has stopped working' and ITune could not be started

    iTune cannot be started on Win 7 after recent update with error message "Push Apple has stopped working"

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach. Review other cases and a list of documents to support further down the page, in which case one of them applies.

    More information area has direct links with the current and recent if you have problems to download, need to revert to a previous version or try the version iTunes for Windows (64-bit-for old video cards) as a workaround for the problems of performance or compatibility with third-party software.

    Your library must be affected by these measures, but it is also related to backup and recovery advice if necessary.

    TT2

  • are not send messages

    Hi, so I was tryung to send messages to people using the desktop version of Skype and messages don't send, they are just saying that they are not delivered even if im on a call to the person, but they send on my phone, so I have no idea whats courses on =)

    IM using windows 8 and im using version 7.18.0.112 Skype

    I fixed it I went in %appdata%/Skype and deleted it - DbTemp file.

    She took all my away messages, but I was able to load Skype and was able to send and receive messages (like 60 during the period of as a second) but I had all saved messages and all sent too

    At soon Sattious

  • Skype does not allow me to send messages to a discussion group

    I am at a loss here, there is no explanation as to why this should be the case.

    Whenever I have send a message using my computer, in a newsgroup, each message is considered "not recovered". I see people typing, but my messages don't want out.

    Now, here are the best, I have reinstalled Skype, tried different versions, disabled my firewall, this isn't a network issue, can I send messages to Skype to other people. In my own home, people are not having the same problem with the same group. I can even send messages to the group using my phone with the same account.

    I also tried logging into another account and typing in the same group and still nothing.

    The problem started out of the air, I was not change settings, I was just typing in the chat and it began seconds after my last post.

    Looks like it was isolated to my user settings, remove the Skype settings in %AppData%, it fixed.

    I'm more perplexed as to how Skype itself spontaneously broken after sending a message.

    Well, we'll never know.

Maybe you are looking for