Http push

Hi all

How can I achieve push http using the BIS Server? I myself tutorial that uses the BES for Http Push server. I want to implement using the BIS server.

Thank you

Madan

To later use, as a post on the topic.

Tags: BlackBerry Developers

Similar Questions

  • Can we use push notiofications into html5 applications? If yes how? My web application must receive push notifications

    Can we use push notiofications into html5 applications? If yes how? My web application must receive push notifications

    Hope this will help you http://pusher.com/tutorials/html5_realtime_push_notifications

  • For the operation of broadcasting how can I get the current network address of BB device

    Hello

    I'm new to the development of BB. I want to develop a Java application or servlet I can send order button to my client devices on BES... I would like to know a few things

    • First of all know if its possiable to apply a base or servlet Java?...
    • How to know current network address of the BB device that uses BES...

    Experts of BB please help... I would like to know I can start with...

    Thanks in advance...

    (I'm in the right forum for these questions)

    Hello

    When you tap on a BlackBerry smartphone, push you to address email or PIN code associated with the device. These can be already known or read the BES.

    Push of browser channel can certainly be handled from a Java application, check on the HTTPDemo (server side) included with the BlackBerry can and JDE plug-in for Eclipse (eJDE) that shows this.

    http://NA.BlackBerry.com/eng/developers/javaappdev/devtools.jsp

    http://docs.BlackBerry.com/en/developers/deliverables/10155/index.jsp?name=http+push+sample+applicat...

    Kind regards

  • Problem recording device! Please help desperate

    I get the below error

    "Net.rim.device.internal.io.CriticalIOException registration error: critical Tunnel failure."

    on the device. What happens when he tries to register.

    I use the client http push sample demo to test.

    Any ideas?

    Concerning

    VB

    Hi all

    I could bring myself using another thread

    I added apn = null for the following line of code

    private static final String BIS_PORT = "http://:20607;deviceside=false; apn = null'; '.

    Its all working now. If someone needs help, I will definitely help.

  • PushApplication onMessage is called several times

    Hi guys,.

    I contacted my team BE but I'm waiting for answer, I want to ask the community:

    Your onMessage is called repeatedly with the same message?

    I see in the code for the examples of the RIM, they check that this message is new (not melted yet):

        public static void process( PushInputStream pis, Connection conn ) {
            Logger.log( "Reading incoming push message ..." );
    
            try {
    
                HttpServerConnection httpConn;
                if( conn instanceof HttpServerConnection ) {
                    httpConn = (HttpServerConnection) conn;
                } else {
                    throw new IllegalArgumentException( "Can not process non-http pushes, expected HttpServerConnection but have "
                            + conn.getClass().getName() );
                }
    
                String msgId = httpConn.getHeaderField( MESSAGE_ID_HEADER );
                String msgType = httpConn.getType();
                String encoding = httpConn.getEncoding();
    
                Logger.log( "Message props: ID=" + msgId + ", Type=" + msgType + ", Encoding=" + encoding );
    
                if( !alreadyReceived( msgId ) ) {
    }
    }
    

    You have the same control in your application?

    Thank you

    Eugen

    There is no guarantee that dups can be sent to the device, but in my experience its pretty rare. You will need to add a message id to the http header when you tap the message to make it work.

  • HttpPushDemo throws the error of missing on real device resource

    I am trying to run the example of httppushdemo on a real device to test for problems with an application to push.  However, if I run the application in the device, I get the error "Missing resource com.rim.samples.device.resource.HTTPPushDemoRes.

    I looked everywhere to find out how to get the resource on the device and impossible to find a solution.  The documentation I found would lead me to believe that it should be compiled in the Cod.

    Why I'm so confused (and frustrated after a long day of our push to debug problems)

    Thank you

    -Bill

    In older levels (4.3 and earlier OS), RIM ran the code, so that the resources (labels field, the names of menu etc.) where in a separate package.  It's a good way to demonstrate how you could internationalize applications, but also everyone confused because putting the application on the device, you need to charge upward of the cod resources as well.

    At the latest OS (4.5 +), they do not do this.

    The demo of http push has not changed, so you can take the source of the 4.5 or later in a previous level JDE and compile it.  It will take so NOT all external files of cod.  That's what I recommend you do.

    However, for you to win download the JDE together for a single file, it is here:

    /**
     * HTTPPushDemo.java
     *
     * Copyright © 1998-2008 Research In Motion Ltd.
     *
     * Note: For the sake of simplicity, this sample application may not leverage
     * resource bundles and resource strings.  However, it is STRONGLY recommended
     * that application developers make use of the localization features available
     * within the BlackBerry development platform to ensure a seamless application
     * experience across a variety of languages and geographies.  For more information
     * on localizing your application, please refer to the BlackBerry Java Development
     * Environment Development Guide associated with this release.
     */
    
    package com.rim.samples.device.httppushdemo;
    
    import java.io.*;
    import javax.microedition.io.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.util.*;
    import net.rim.device.api.io.http.*;
    
    /**
     * The client side of a simple HTTP Push system.
     * This application will listen for image data on the specified port and
     * render the data when it arrives.
     */
    public class HTTPPushDemo extends UiApplication
    {
        // Constants ----------------------------------------------------------------
        private static final String URL = "http://:100"; // PORT 100.
        private static final int CHUNK_SIZE = 256;
    
        // Members ------------------------------------------------------------------
        private ListeningThread _listeningThread;
        private HTTPPushDemoScreen _mainScreen;
        private RichTextField _infoField;
        private RichTextField _imageField;
    
        public static void main(String[] args)
        {
            HTTPPushDemo theApp = new HTTPPushDemo();
            theApp.enterEventDispatcher();
        }
    
        // Constructor --------------------------------------------------------------
        public HTTPPushDemo()
        {
            _mainScreen = new HTTPPushDemoScreen();
            _mainScreen.setTitle(new LabelField("HTTP Push Demo" , LabelField.USE_ALL_WIDTH));
    
            _infoField = new RichTextField();
            _mainScreen.add(_infoField);
    
            _mainScreen.add(new SeparatorField());
    
            _imageField = new RichTextField();
            _mainScreen.add(_imageField);
    
            // Spin off the listening thread.
            _listeningThread = new ListeningThread();
            _listeningThread.start();
    
            _infoField.setText("HTTP Listen object started");
    
            pushScreen(_mainScreen);
        }
    
        // Inner Classes ------------------------------------------------------------
        private class ListeningThread extends Thread
        {
            private boolean _stop = false;
            private StreamConnectionNotifier _notify;
    
            public synchronized void stop()
            {
                _stop = true;
                try
                {
                    // Close the connection so the thread will return.
                    _notify.close();
                }
                catch (IOException e)
                {
                    System.err.println(e.toString());
                }
                catch (NullPointerException e)
                {
                    // The notify object likely failed to open, due to an IOException.
                }
            }
    
            public void run()
            {
    
                StreamConnection stream = null;
                InputStream input = null;
                MDSPushInputStream pushInputStream=null;
    
                while (!_stop)
                {
                try
                    {
    
                        // Synchronize here so that we don't end up creating a connection that is never closed.
                        synchronized(this)
                        {
                            // Open the connection once (or re-open after an IOException),  so we don't end up
                            // in a race condition, where a push is lost if it comes in before the connection
                            // is open again. We open the url with a parameter that indicates that we should
                            // always use MDS when attempting to connect.
                            _notify = (StreamConnectionNotifier)Connector.open(URL + ";deviceside=false");
                        }
    
                        while (!_stop)
                        {
    
                            // NOTE: the following will block until data is received.
                            stream = _notify.acceptAndOpen();
    
                            try
                            {
                                input = stream.openInputStream();
                                pushInputStream= new MDSPushInputStream((HttpServerConnection)stream, input);
    
                                // Extract the data from the input stream.
    
                                DataBuffer db = new DataBuffer();
                                byte[] data = new byte[CHUNK_SIZE];
                                int chunk = 0;
    
                                while ( -1 != (chunk = input.read(data)) )
                                {
                                    db.write(data, 0, chunk);
                                }
    
                                updateMessage(data);
    
                                // This method is called to accept the push.
                                pushInputStream.accept();
    
                                input.close();
                                stream.close();
    
                                data = db.getArray();
    
                            }
                            catch (IOException e1)
                            {
                                // A problem occurred with the input stream , however, the original
                                // StreamConnectionNotifier is still valid.
                                System.err.println(e1.toString());
    
                                if ( input != null )
                                {
                                    try
                                    {
                                        input.close();
                                    }
                                    catch (IOException e2)
                                    {
                                    }
                                }
    
                                if ( stream != null )
                                {
                                    try
                                    {
                                        stream.close();
                                    }
                                    catch (IOException e2)
                                    {
                                    }
                                }
                            }
                        }
    
                        _notify.close();
                        _notify = null;   
    
                    }
                    catch (IOException ioe)
                    {
                        // Likely the stream was closed. Catches the exception thrown by
                        // _notify.acceptAndOpen() when this program exits.
    
                        if ( _notify != null )
                        {
                            try
                            {
                                _notify.close();
                                _notify = null;
                            }
                            catch ( IOException e )
                            {
                            }
                        }
                    }
                }
            }
        }
    
        private void updateMessage(final byte[] data)
        {
            Application.getApplication().invokeLater(new Runnable()
            {
                public void run()
                {
                    // Query the user to load the received message.
                    String[] choices = {"Ok" , "Cancel" };
    
                    if ( 0 != Dialog.ask("New message received. Do you want to render it?" , choices, 0) )
                    {
                        return;
                    }
    
                    _infoField.setText("Text received - size:  " + data.length);
    
                    try
                    {
                       _imageField.setText(new String(data));
                    }
                    catch (Exception e)
                    {
                        Dialog.inform(e.toString());
                        System.err.println(e.toString());
                    }
                }
            });
        }
    
        protected void onExit()
        {
            // Kill the listening thread.
            _listeningThread.stop();
    
            try
            {
                _listeningThread.join();
            }
            catch (InterruptedException e)
            {
                System.err.println(e.toString());
            }
    
        }
    
        private class HTTPPushDemoScreen extends MainScreen
        {
    
            /**
             * @see net.rim.device.api.ui.Screen#close()
             */
            public void close()
            {
                onExit();
    
                super.close();
            }
        }
    }
    
  • Bad HTTP response returned with status code: 404 at low level sample push inititator

    Hello, I have installed low level sample push inititator in my localhost, everything is OK but when I try send a single message push, the server return

    "Bad HTTP response with the status code returned: 404."

    Can someone help me, please

    What is the URL used (Please replace your CPID with ' x)?

  • Web Widget-> State HTTP 403 Push - couldn't map device 2100001 a to a host of the PDAP.

    Hello

    Windows 7 Professional 64 bit
    Visual Studio plugin
    Web Widget
    Simulator 9550 Storm v5.0.0.469

    I have some problem try to Push sample work.
    I have the widget client running in the Simulator.
    I'm running the server java example (found at http://www.blackberry.com/go/pushwidgetsample) to send the request. Client and server are on the same machine.
    I changed the PIN used in the example of 2100000 A to 2100001 A server since it is my default PIN Simulator. When an attempt to send a helping hand with 2100001 A, the command console displays this error:
    Sending push button / http://localhost:28080? DESTINATION = 2100001A & PORT = 100 & REQUESTURI = localhost
    java.io.IOException: server returned HTTP response code: 403 for URL: http://localhost:28080 / push? DESTINATION = 2100001A & PORT = 100 & REQUESTURI = localhost

    And if I try the url specified in a web browser, I get:
    HTTP status 403 - no map device 2100001 a host to the PDAP.

    As suggested somewhere, I browse to www.google.com or www.rim.com a couple of times before you send the push (to register with the MDS), but it does not help.

    I Uncomment the push.application.reliable.ports line = 100 in C:\Program Files (x 86) \Research In Motion\BlackBerry Widget Packager\mds\config\rimpublic.property.

    shows http://localhost:28080 / admin/common/home
    Build number: 26
    Build version: 4.1.5.26
    Construction date: 2008/02/06

    Http://localhost:28080 / admin/statistics/statistics, fittings 'Push' is not incremented.

    If I try to push the default PIN 2100000 a, I get:

    Sending push button / http://localhost:28080? DESTINATION = 2100000 a. & PORT = 100 & REQUESTURI =
    localhost
    Answer: Content length: 0

    which seems to indicate success ('Push connections' increments in the statistics page), but no response given that nobody is listening on this PIN.

    So why I can't push at 2100001A?
    Or y at - there a way to fix the PIN code of my Simulator "2100000A?

    Hello

    Have you had any success pushing an e-mail instead of a PIN?

    Open the rimpublic.property file that is associated with the MDS Simulator - CS you are using (you can find in the file MDS\config of the installation of the BlackBerry Web plugin folder) and check that the values are found in the section [Simulator]?  It may look like this:

    [Simulator]
    #[CDK_MODIFICATIONS for Running Multiple Simulators]
    # Each simulator instance must have a unique IPPP port assignment
    # ie. Simulator fledge.exe command lines must have:
    #    /ignore-data-port-conflicts /app-param=IPPPSourcePort: 
    Simulator.2100000a=MDS,[email protected]
    Simulator.2100000b=MDS,[email protected]
    Simulator.2100000c=MDS,[email protected]
    

    Make sure that the PIN / email combination in rimpublic.property correspond to what you use in your sample to push.

    See you soon,.

    Adam

  • BES Push Notification to HTTPS


    Yes, I put the port (it is not the default port). The problem was the certificate. After adding our certificate to the MDS, the notification arrived successfully with HTTPS. It would have been nice if the error in the MDS newspaper said why the connection failed.

    Solution: you need to import your certificate https in the Java keystore used by the connection as described MDS Service here:

    http://www.BlackBerry.com/BTSC/KB11623

  • Series 2: Push the water

    There will be a way to push the water through the speaker without start/end an exercise (swimming)? An App? Maybe I wear the watch in the pool/shower or just wash my hands with a lt of water.

    "If air pushed by the speaker can get out, the water will be. So the speaker vibrates to push the air out, forcing the water out too. The user can turn the digital Crown to achieve, as a representative of Apple showed me yesterday. »

    Here > https://news.fastcompany.com/how-apple-watch-series-2-pushes-water-out-of-the-sp eaker-wind-4018739

  • Local error-1200 creation push certificates on the server. Any idea?

    In the Application Server

    When you try to renew or create a certificate to push comes up with the error "Certificates to push creation local error - 1200" on the server. Any idea? »

    I'm having the same problem with 10.7.5 server. (two of them)

    At the time of renewal, I was looking at the Console and I think the Apple Server SSL certificate is therefore more reliable.

    (or server versions are low)

    August 15 at 10:23:08 login.* * servermgrd [23349]: received the connection error: error domain = NSURLErrorDomain Code =-1200 "error SSL and a connection to the server cannot be made. UserInfo = 0x7fb8f5aab9a0 {NSUnderlyingError = 0x7fb8f15af450 "error SSL and a connection to the server cannot be made.", NSErrorFailingURLStringKey =https://identity.apple.com/pushcert/caservice/renew, NSErrorFailingURLKey =https://identity.apple.com/pushcert/caservice/renew, NSLocalizedRecoverySuggestion = you want to connect to the server anyway?, NSLocalizedDescription = SSL an error has occurred and a connection to the server cannot be made.}

    August 15 at 10:23:08 login.* * servermgrd [23349]: certificate request to push failed: reason = Local, error code = - 1200, error = error Domain = NSURLErrorDomain Code =-1200 "error SSL and a connection to the server cannot be made. UserInfo = 0x7fb8f5aab9a0 {NSUnderlyingError = 0x7fb8f15af450 "error SSL and a connection to the server cannot be made.", NSErrorFailingURLStringKey =https://identity.apple.com/pushcert/caservice/renew, NSErrorFailingURLKey =https://identity.apple.com/pushcert/caservice/renew, NSLocalizedRecoverySuggestion = you want to connect to the server anyway?, NSLocalizedDescription = SSL an error has occurred and a connection to the server cannot be made.}

    So not yet an idea, but hopefully with these console outputs happen to something?

  • Flashing v2.2 to flame does not work: Gecko pushing the device failed.

    My flame won't take the production version 2.2: https://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-b2g37_v2_2-flame-kk/

    Before you start to blink, I installed v188 base image. I repeated the process several times, all with the wire and a normal USB cable.

    Am I doing something wrong, that is, should it work? Or is the 2.2 build flawed production? STH. anything else?

    Details:

       $ sudo ./shallow_flash.sh --gaia=gaia.zip --gecko=b2g-37.0a2.en-US.android-arm.tar.gz
       Are you sure you want to flash
       Gaia: gaia.zip
       Gecko: b2g-37.0a2.en-US.android-arm.tar.gz
       to your Device? [y/N]y
       ### Waiting for device... please ensure it is connected, switched on and remote debugging is enabled in Gaia
       ### Restarting adb with root permissions...
       adbd is already running as root
       ### Remounting the /system partition...
       remount succeeded
    
       ### Stopping b2g process...
       ### Processing Gecko: b2g-37.0a2.en-US.android-arm.tar.gz
       ### Untar b2g-37.0a2.en-US.android-arm.tar.gz to /tmp/shallowflashgecko.00iXx8EkcRhd ...
       ### Pushing Gecko to device...
       ### Cleaning Extra System Files ...
       ### Cleaning Done.
       ### Cleaning Extra Gecko Files ...
       ##### Removing /system/b2g/distribution ...
       ### Cleaning Done.
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/dictionaries/en-US.dic -> /system/b2g/dictionaries/en-US.dic
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/dictionaries/en-US.aff -> /system/b2g/dictionaries/en-US.aff
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/components/components.manifest -> /system/b2g/components/components.manifest
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/ua-update.json -> /system/b2g/ua-update.json
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/platform.ini -> /system/b2g/platform.ini
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/crashreporter.ini -> /system/b2g/crashreporter.ini
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/libmozsandbox.so -> /system/b2g/libmozsandbox.so
       push: /tmp/shallowflashgecko.00iXx8EkcRhd/b2g/omni.ja -> /system/b2g/omni.ja
       ### Failed: Pushing Gecko to device failed.
    

    Seems Virtual Box was to blame: use the scripts to upgrade from a virtual machine of Xubuntu. After migrating to VMware player, things went. As reported by other institutions, Virtual Box has problems of stability with the USB communication.

  • 210 - 4004tu I need ram upgrade. Cannot open the hood, nothing to push. How to open?

    210 - 4004TU Ii need to upgrade RAM. I can't open the lid. After removing the battery, I see nothing to push or pull. How to open the lid?

    http://h20574.www2.HP.com/results.htm?SID=5145732 & = 22BBD688-A54A-4FA3-B751-2A7067A5B29E MEID

    Don't forget and log in before you click on the link to the library.

    Go to the Door of Service in the left column, then the Memory Module.

    A few times you will need to give a few minutes to load the page.

    If she does not, I'll post a better link and instructions on how to get to your model.

  • implementation of a push button

    Hey I just started using Labview and I need for a project on the recording of the results of strain gauge. I wrote a code for data recording, but I don't know if he needs calibration I use the NI 9237 strain gauge module and how to proceed to make the calibration? I tried the example find in Labview but its me gives an error and I do not understand FPGA. My second question is I want to use a digital input module to implement a push button so that the code turns on when its market and it stops logging when you press OFF. I do not know how that proceed and what is needed in the code to do this. I posted what I have so far and any help will be appreciated. Thank you

    "I don't actually like using the term 'guru', I actually perfer LabVIEW Overlord."  It really scared in the peasants of LabVIEW. »

    But seriously do anything is going to take a long time, is there no reason not to learn something.  Heck that's why universities, people are going to lose time to learn.

    Back to the original question a bit.  NEITHER offers calibration options

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/207895

    https://www.NI.com/services/calibration.htm

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/207957

    http://www.NI.com/white-paper/12788/en/

    Some hardware supports self-calibration but most don't.  You can also perform the calibration of your car, but I can't find the documents for this right now.  I think there is an example in the Finder of the example on calls to set the calibration offsets in the material.

  • Push Pin information fills the map in MapPoint 2013.

    I use MapPoint 2013 and display data from customer numbers in code pine information push.  The problem is that the info of the push pin fills the card.  Is it possible to change the size of the Push Pin Info and even move around map sothey don't too much knees?

    original title: MapPoint 2013

    Post in the forum of MapPoint:

    http://social.Microsoft.com/forums/is/streetsandtrips/threads

Maybe you are looking for

  • I don't have garageband

    I bought my 6 64 GB iPhone from at & t in August 2015 and I garage-band on it I have to buy for her

  • Satellite A215 S6816 won't mode BIOS and Windows does not load

    Hello I'm helping a friend to determine what the problem could be on his laptop satellite A215 - S6816 Windows does not load on start up and it says "press F2 for Setup, press F12 for the boot device selection menu" but niether one of these options w

  • Disconnecting from drive external hard usb 3.0 on win 8.1 - HP Beats

    I have the special edition beats 15-p058n and my USB 3.0 WD My Passport which works fine on Windows 7 3.0 is connecting / disconnecting constantly every 10 seconds or more. I checked the internet and found that so many similar problems could be a com

  • thread different not mobile Panel

    I () will have applications of measure which changes, sends a bitmap image in its Panel to a network Variable. I have a player that connects to the network variable. It was a reminder that fires on an update of the value or the State. Because the siz

  • Photosmart D5160 keeps restarting

    All of a sudden my printer keeps restaring if the USB cable is disconnected and then reconnected. I tried to reinstall the software and which appeared to install correctly, however approximately every 5 minutes this problem occurs. I have this error