API of Communication OS6 no Msg Push

I'm just trying to provide 2 versions diff to push Clients:

* OS 5 customer (based on the sample of push and Simon_Hains code example)

works well

* OS 6 Client using the new API of Communication Communication API demo

Subscription to the content provider and recording of BPS works well: questioning the BPS, the customer is active

Removal of the device APP automatically off records the PIN of the BPS Server

The SubscriptionResponseListener works as well: onMessage receives the response from the ContentServer to verify if the subscription is allowed.

But: the MessageListener for PushMessages of BPS gets no message. The messages will become "EXPIRE" after a while because of the delivery-before-timestamp...

The Messages were repelled EVAL Push server if you use the OS5 - sample of push.

also if PushSample is running and you try to run also the OS6 push Cklient I have the correct message that another receiver is already listening on the Port.

think there must be something wrong with my receiver not to receive Messages - maybe the URI of the receiver is listening on:

BPS_PUSH_RECEIVER_URI = ' local: / /: "+ BPS_PUSH_PORT".

the JavaDoc says:

createNonBlockingReceiverDestination will receive the messages by listening to the local://deviceAppName URL.

the API of Communication demo uses:

local: / /:tro-No./test2

I also tried to add the receiver URI/name-of-cod, but it's the same: no message coming

any ideas what could be the problem?

GOD wrote:

...

think there must be something wrong with my receiver not to receive Messages - maybe the URI of the receiver is listening on:

BPS_PUSH_RECEIVER_URI = ' local: / /: "+ BPS_PUSH_PORT".

the JavaDoc says:

createNonBlockingReceiverDestination will receive the messages by listening to the local://deviceAppName URL.

the API of Communication demo uses:

local: / /:tro-No./test2

thx for helping RIM on that: a ' / ' missing

This is the URI of the BPSPushReceiver of the OS 6 Communication API is listening on:

"local: / /:" + BPS_PUSH_PORT +"/" ".

Tags: BlackBerry Developers

Similar Questions

  • OS6 Communication fails with HTTP BIS - b

    Hello

    in an application OS6 I met a problem that cost me some time to find out the reason:

    HTTP GET or POST fail on connections of BIS_B using the OS6 Communication APIs - I have not found a way to make it work, so falling to OS5 network API

    Here is the story:

    a very simple scenario: send something via HTTP to a server and the server sends back a small stream. ("text/plain")

    well... you can take a look at the "Communication API demo of OS6 samples to see what should be possible using the OS6 Communication APIs

    at first I tried Simulator: all works well using blocking or NonBlockingSenderDestinations.

    the tried on a device:

    WIFI: it works the same as on the Simulator + MDSCS

    Cell TCP: works the same as on the Simulator

    BISB: FAILS - is not serious if you use GET or POST or using blocking or NonBlocking destinations

    same URL entry browser: it works well, sending text server of displayed well

    strengthened through the code being debugged, added logging statements and eventually found what happened:

    TransportHeaders respose message were different.

    It's the Transportheader using WIFI, cellular TCP, Simulator + MDSCS coming:

    Content-Type

    text/plain; charset = utf-8

    Content-Length

    19

    Connection

    close

    Server

    Jetty (6.1.x)

    was exactly what we expected: raw text of length 19 sent my Pier OSGI server.

    Now take a look at the coming of TransportHeaders rear using BISB on device (9800):

    connection

    close

    Server

    Jetty (6.1.x)

    content length

    78

    x-rim-etag

    'B93405A8E587FE3E45F4210D41D1A1218E7DE4C5 '.

    x-rim-bsm-session

    None

    x-cache-search

    MISS Blackberry.Internet.Browsing.Service:3128

    through the

    1.1 pmds95.bisb4.blackberry:3128 (squid/2.7.STABLE7)

    content type

    application/vnd. RIM.html

    x cache

    MISS Blackberry.Internet.Browsing.Service

    the server threw and the connection is closed - what is the same and correct.

    the other TransportHeaders lead me to think that maybe it was how the content was transported through the BlackBerry infrastructure, but I forgot to convert what needs to be given to the customer.

    I analyzed the byte [length] 78 and found this inside this table as my 19 bytes sent from the server were found and the byte before this text was a byte of value ' 19 '' - the length of the following data. " I also found "text/plain" isnide table.

    I should put some headers more to my side Server?

    But he couldn't be that bad because by using the APIs network OS5 it is correctly by the device BISB. the code was similar.

    Here's the (simplified) OS6 code for aNonBlockingSenderDestination:

    NonBlockingSenderDestination subscribeDestination = null;
    ConnectionFactory cf = new ConnectionFactory();
    cf.setPreferredTransportTypes(new int[]{
        TransportInfo.TRANSPORT_TCP_WIFI,
        TransportInfo.TRANSPORT_MDS,
        TransportInfo.TRANSPORT_BIS_B,
        TransportInfo.TRANSPORT_TCP_CELLULAR,
        TransportInfo.TRANSPORT_WAP2
    });
    BisBOptions biso = new BisBOptions(seekretConnectionType);
    cf.setTransportTypeOptions(TransportInfo.TRANSPORT_BIS_B, biso);
    Context subscribeContext = new Context("SUBSCRIBE_NON_BLOCKING", cf );
    try {
          subscribeDestination = (NonBlockingSenderDestination)DestinationFactory
            .getSenderDestination(
                subscribeContext.getName(),
                getPushInitiatorSubscribeURI());
          if (subscribeDestination == null) {
             MessageListener subscriptionListener = new SubscriptionResponseListener("Subscription");
                subscribeDestination = DestinationFactory
                    .createNonBlockingSenderDestination(
                        subscribeContext,
                        getPushInitiatorSubscribeURI(),
                        subscriptionListener
                    );
          ConnectionDescriptor connectionDescriptor =   subscribeContext.getConnectionFactory().getConnection(getPushInitiatorSubscribeURL());
          HttpMessage httpMessage = (HttpMessage) subscribeDestination.createByteMessage();
          httpMessage.setMethod(HttpMessage.POST);
          subscribeDestination.send((Message)httpMessage);
    

    and here's the code API network OS5 (Simplified):

    DataBuffer buffer = new DataBuffer( 256, false );
    InputStream is = null;
    Connection conn = null;
    try {
        ConnectionFactory cf = new ConnectionFactory();
        cf.setPreferredTransportTypes(new int[]{
            TransportInfo.TRANSPORT_TCP_WIFI,
            TransportInfo.TRANSPORT_MDS,
            TransportInfo.TRANSPORT_BIS_B,
            TransportInfo.TRANSPORT_TCP_CELLULAR,
            TransportInfo.TRANSPORT_WAP2});
        BisBOptions biso = new BisBOptions(seekretConnectionType);
        cf.setTransportTypeOptions(TransportInfo.TRANSPORT_BIS_B, biso);
        ConnectionDescriptor connectionDescriptor = cf.getConnection(getPushInitiatorSubscribeURL());
        conn = (HttpConnection) connectionDescriptor.getConnection();
        if( conn instanceof HttpConnection ) {
             HttpConnection httpConn = (HttpConnection) conn;
             ((HttpConnection) conn).setRequestMethod(HttpConnection.POST);
             OutputStream os = httpConn.openOutputStream();
             os.write(("user="+user+";pw="+password).getBytes());
             os.flush();
             int responseCode = httpConn.getResponseCode();
             is = httpConn.openInputStream();
             int length = is.read( buffer.getArray() );
             buffer.setLength( length );
             String response = new String( buffer.getArray(), buffer.getArrayStart(), buffer.getArrayLength() );
             if( responseCode == 200 ) {
                  return true;
             }
        }
    

    is similar using always the same values and the server gets the correct data even from BISB using the Communication APIs - just the answer for this type of transport passing becomes bad.

    any ideas?

    or should I proceed to report a problem as a Bug?

    There is really a bug: If you use BISB with HTTP and OS 6 Communication API, then:

    It works for BISB-over-WIFI

    but it fails to BISB-over-carrier

    bug in > 6.0

    The GOOD NEWS: there is a solution:

    Just add a "User-Agent" TransportHeader with any value to your HTTP request Message, but the value does NOT start with the word "BlackBerry".

    then it works always - is not serious if the transport is in WIFI or carrier

    RIM thx for help

  • 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.

  • Sign up for the service push BlackBerry 10

    Hello

    I'm trying to implement the blackberry for BB10 push notification.

    I have camera z10. My device doesn't have a sim card. I use internet through Wi - Fi.

    When I call the function below is to show some mistakes. 'blackberry.push.openBISPushListener '.

    Please let me know, for recording in the push notification service, if the Sim Card and BIS are necessary or not.

    Please help me.

    The API you noted (openBISPushListener) is a Legacy BBOS API for BBOS 5.0 - 7.1

    For BlackBerry 10, you will need to take advantage PushService.create approach:
    https://developer.BlackBerry.com/HTML5/APIs/beta/BlackBerry.push.pushservice.html

    Direct API documentation:
    https://developer.BlackBerry.com/HTML5/APIs/beta/blackberry_push_PushService_create.html

    EDIT: Push via WiFi is completely valid.

  • Research of the Application implementation reviews

    I have an app, I try to write with a few basic requirements: a list in an XML file, Act on list items, display an image file in the list that refreshes often, use location and map data. I know that HTML5/JS well enough and serves to make the Java in college (I have a few apps that do some calculations of EditField entered).

    I have a 9700 with OS6 installed app space is low. I know a few other people who currently have a BBs and will not immediately jump on the bandwagon BB10. I find webworks applications take more space they should and think this app is perhaps better native.

    If you start the application today which route you spend:

    My problem is too many choices. Whenever I hit a snag goes one way, I turn to one of the other methods listed instead of continue on.

    I'm looking for just opinions of others, how in this situation. (I am aware of the bias that I get asking question in this particular forum)

    You want to support the OS 5.0 or an earlier version?

    RIM seem rremoved the page this lgave you the percentages of devices operating at different levels of the BONE, but the last stats I saw suggested that OS 5.0 was always a market significnat part.  For OS 5.0, you have two choices

    Java with GCF (in fact, you would use ConnectionFactory)

    WebWorks (that works in OS 5.0

    To me, you must choose the trendy, you know.  In your case, it seems to be WebWorks.  So unless you have good reasons to do it in Java (for example, you want some feature not avaiable in WebWorks), you should use that.

  • HTML 5 Webworks Notifications

    How or rather, I was wondering if it would be possible to show a notification icon on the home screen of the blackberry, as you work with HTML 5. I know it can be done in the java runtime environment, but I'm not sure HTML 5. If anyone has any information on the question of whether this is possible, any information would be helpful. Thanks in advance.

    Indeed. You can use the API of Community origin: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/notification for full custom notifications and the native showBannerIndicator show a small icon with a number in the Ribbon: https://bdsc.webapps.blackberry.com/html5/apis/blackberry.app.html#.showBannerIndicator

    For those who make it clickable in the message list, use the API of Community origin: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/MessageList

  • Previous OS 5.0?

    The push is for the operating system 5.0 and more and also to 4.x

    Thank you

    BlackBerry had to push for a long time. You can use it in 5.0, 4.6, 4.7 and 4.2, etc...

    In OS 5.0 they added some useful API, but you can always use push without these APIs

  • Starts the webworks development

    Hello

    I developed blackberry applications with the blackberry java sdk. I was informed that the use of webworks is much better to display graphics in a blackberry app. Can I integrate java code within webworks or vice versa? I would like to use webworks to simply manage the graphics and use the java SDK for everything else. Is this possible? Webworks applications work in the browser, or as a stand-alone application?

    Any help much appreciated.

    Thank you

    That's the key. Keep in mind there are already APIs and community of extensions that can do what you're looking for. A lot of people don't need to write an extension custome at all.

    adrianeireyahoo wrote:

    To convert a native java application webworks should I create a new project of webworks, write the html/css/js code for my GUI and then write a series of extensions to call a java specific functionality.

  • How to send a notification to the user at a specific time

    Hi all

    How can I send a notification to the user? Currently I have this in my c ++ but it does not display notifications?

    Any suggestions are welcome.

    Thanks in advance.

    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::platform;   
    
    void sendNotification::onNotificationResponse() {
            Notification* pNotification = new Notification();
        qDebug() << "Notifying";
    
        pNotification->setTitle("Maintenance Reminder");
        pNotification->setBody("Maintenance will be starting in 30 minutes.");
        pNotification->setTimestamp(QDateTime::fromString("2013-11-28 18:00:00", "yyyy-MM-dd hh:mm:ss"));
    
        pNotification->notify();}
    

    If your application is frozen you can of course check the time periodically nuer a QTimer, or other methods.

    If your application is not running currently, there is unfortunately no nice way to do a trigger invocation time based (except for the phone to boot) does not yet exist (or at least is not readily available yet).

    Thus, three methods either go in the sense of time running headless, use the calendar api or have a mechanism external push of a server.

  • Change symbols

    Screen Shot 2016-03-11 at 5.40.22 pm.png

    Screen Shot 2016-03-11 at 5.51.12 pm.png

    Screen Shot 2016-03-11 at 5.50.35 pm.png

    Screen Shot 2016-03-11 at 5.51.38 pm.png

    I bring the solution to all your problems in this simple easy-to-read * excerpt from script!

    #target illustrator
    function test(){
        var SymbolSampleScript = {
            displayProps : function (item){
                var msg = [];
                for(var all in item){
                    try{
                        msg.push(all + " : " + item[all]);
                    } catch(e){
                        msg.push(all + " : " + e);
                    }
                }
                return msg.join("\n");
            },
            getPropListFromArray : function (srcArr, prop){
                var arr = [];
                for(var i = 0; i < srcArr.length; i++){
                    arr.push(srcArr[i][prop]);
                };
                return arr;
            },
            SymbolChanger : {
                chooseSymbolDialog : function(){
                    var w = new Window('dialog', 'choose symbol');
                    var list = w.add("listbox", undefined, SymbolSampleScript.getPropListFromArray(app.activeDocument.symbols, "name"));
                    list.size = [150, 200];
                    var g_btn = w.add("group");
                    var btn_ok = g_btn.add("button", undefined, "Ok");
                    var btn_ccl = g_btn.add("button", undefined, "Cancel");
                    btn_ok.onClick = function(){
                        if(SymbolSampleScript.SymbolChanger.validate(list)){
                            w.close();
                        } else {
                            return;
                        }
                    }
                    if(w.show() == 2){
                        return null;
                    } else {
                        return {
                            selectedSymbol : list.selection.text
                        };
                    }
                },
                validate : function(list){
                    if(list.selection != null){
                        return true;
                    } else {
                        alert("Please select an item from the listbox.");
                    }
                    return false;
                }
            },
            main : function(){
                var doc = app.activeDocument;
                var s = doc.selection;
                if(s != null && s.length > 0 && s[0].typename == "SymbolItem"){
                    var userInput = this.SymbolChanger.chooseSymbolDialog();
                    if(userInput != null){
                        s[0].symbol = doc.symbols.getByName(userInput.selectedSymbol);
                    } else {
                        alert("Cancelled");
                    }
                } else {
                    alert("Please select one symbol instance on an artboard in your document.");
                }
            }
        };
        SymbolSampleScript.main();
    };
    test();
    

    * relatively speaking

  • Captivate 9 sensitive works do not correctly on WordPress

    Hello

    I don't know if anyone can help me. We are new with adobe captivate 9 and have been playing with reactive nature projects. We want this to work on our Web site we use LearnDash to publish our course.

    I spent most of the day yesterday on the adobe support who said they don't have any expertise in WordPress and therefore cannot advise if it will work or not.

    We have created http://mtdelearning.co.uk/test-2/ - a sensitive project provided by adobe for the tests. If you view it on an iPad or iPhone it does not seem right however adobe have placed on this one: http://www.varunweb.tk/cp/index.html which is not a WordPress site and it works great.

    Adobe advised to open the project directly rather than through iFrame. Anyone have an idea how we can do it, rather than by iFrame. Currently, that's how I'm integrating the session:

    "< div class ="aspect-ratio - 4 x 3"> < iframe src="/cp9_sessions/test3/index.html "width ="1080"height ="810"> < / iframe > < / div >

    Thank you very much

    Jenny

    A player of LMS normally uses a sort of frameset if the page that displays the content to the INSIDE of the frames set to play.  This allows the LMS to 'listen' calls JavaScript that makes the content to the outside world, or in this case, for the LMS.

    Some LMS using framesets.  It seems that your LMS uses an iFrame in a normal web page.  Either it should be to listen to the calls to the SCORM API.

    If you simply change the code to call the index.html file of the course directly from a link on your web page in WordPress, then set it to target _new, it should open the html course in a different window.  However, unless that link is made through your LMS in a way that sets up the SCORM API normal communication, your course not send results everywhere and the LMS will not be able to pick up and track the interaction of the user.  It is therefore a bit of a catch 22.

  • What is x 86 all the Techniques of virtualization?

    Dear Experts of VMware;

    I know the ESX(I) have three x 86 virtualization techniques:

    1-binary Translation (The older)

    2-material assistance to the (The one that follows - which have a lot of performance problems due to the lack of MMU virtualization support and lacks to cooperate quickly with the MMU virtualization software)

    3-paravirtualized (The most recent technique it have the ability to change the core of the guest operating system to perform an execution performance by using APIs is communication between the virtual machine and Hypervisor.) This makes using VMware tools and VMI kernel enabled for VMI Linux kernels).

    I also found that the MMU & CPU paravirtual are supported only for 32 bit OS, I have no why he provided only for 32 bit OS.

    Finally, I surprised when I know that VMware support is no longer the VMI in future versions of virtualization products.


    Did I miss something here? or what plan of VMware for virtualization performance? Are it will depend only in the first 2 techniques and stop the paravirtual for CPU & MMU and support it to storage drivers and networking only!?

    .... Oh... I'm so confused. !!!


    Please, I hope that someone support me with the correct answer... or papers...


    Thanks for the replies.


    Fady

    By the VMkernel resource management is an essential feature.  Planning enough vCPUs, allocation of memory and conservation and management of I/O is the functional Center of the hypervisor, and is not a trivial task.  Be able to unload things like shadow page tables and output entry/VM VM activity for privileged CPU instructions (interruptions, etc.) leaves more room in the vmkernel for other tasks.

    Paravitrualized ECS (vmxnet) and for guests paravirtualized SCSI controllers will not have anywhere for awhile; they are now required to e/s high-performance of a virtual machine.

    There are a number of documents of the performance under the vSphere technical resources that enter the details on the CPU scheduler and the VMkernel memory management features.

    Thank you

    -jk

  • Support of shader, GLSL, HLSL or Cg to the Director?

    Subject pretty much sums up it.  Assuming that I have interview Director to determine the opengl or directx, it is possible to use the modern programmable graphics shaders to the Director?  I see the section on shaders, but I guess these are just pre-built?  Some of the frequently asked questions on the web for 11.5 seems to imply some sort of way to use shaders to the Director, but I can't find anything in the docs.

    This seems to be a difference of big news between Director and say unity 3d.  Thanks for any info.

    -John

    is it possible to use modern programmable graphics shaders to the Director?

    N °

    The community of users has pushed for this kind of support for a few years now. Adobe needs to put it back in the D12, in operating condition and little time, or remaining 3D developers who do not already have will leave the ship to the unit.

  • Oracle UCM 10 gr 3 and webcenter 11g, WCM Portlets

    Hello
    I installed Oracle UCM 10 gR 3, Site Studio 10 gR 4 and Webcenter 11 g. Now my problem is how to get WYSIWIG (WCM Portlet), created at the University Complutense of MADRID to be found in webcenter spaces.

    I understand after reading a few articles, it's the only way I can communicate is through WSRP (CIS and CPS), if it's the case u can suggest what is the difference between them and the one that is best for an Intranet Application. Please also provide an example for the portlet and steps to install locally.

    I don't want to give all the answers at once. Fair share little by little, even if you have some knowledge.

    Thank you
    Pradeep.

    I'm a Newbie!

    Hey Pradeep.

    You have many options to extract the contents of UCM in addition to CIS and by extension CPS WebCenter. The best article on the subject can be found here (if you have not already read): http://blogs.oracle.com/fusionecm/2010/04/oracle_ucm_integration_with_we.html

    To more directly answer your questions, the difference between CIS and CPS is that CIS is the lower level APIs making communication with the Complutense University of MADRID. It serializes your request across the and manages response data that comes packing back up as an easy-to-use objects. CPS relies on the CIS as its backend to allow portlets to communicate with the Complutense University of MADRID.

    For an intranet application, you have many options. Records management, I would recommend a combination of the taskflow of document library with a couple of CPS portlets (my workflow tasks, etc.). To retrieve content to display as part of an intranet "site" I would exploit the content Presenter taskflow.

    If the content to retrieve active 10gr 4 Site Studio I would recommend instead that you roll your own simple content portlets. This is what we ended up doing to Fishbowl and reused them to great effect implementation of several intranet portals for different customers in a very short time. More info here: http://www.fishbowlsolutions.com/StellentSolutions/OracleUCMStellentConsultingServices/Categories/OracleUCMStellentPortalTechnologies/index.htm

    Hope that helps,
    Andy Weaver - Senior Consultant software
    Fishbowl Solutions< http://www.fishbowlsolutions.com?wt.mc_id="L_Oracle_Consulting_amw_OTN_WCF">

  • Flash/Flex commercial trucks - a faulty concept?

    This is my first post here. I am a long-time developer and use part-time Flex for about 18 months. I'm putting in place the developers group Flash Perth that kept me in this site.

    Anyway, I'm in an office shared with 5 other Web developers/designers and are pitching in for a customer who want an e-commerce site, and it provides the liberal use of Flash. We settled on Magento as backend and I can imagine all kinds of creative animation Flash drawing on Magento web services.

    However the other guys are unanimously WARNING far from anything too funky and Flash based for the interface trader, saying:
    (1) they do not work, citing times of loading, distributed feature

    I get this to some extent. I had at least a couple of sites in Flash simply does not lately, perhaps due to running Flash Player 10 in the opera on a Mac. The reasons don't matter - the point being that Flash adds technical obstacles to customers buying things. I still have the ideal that something well built in Flex can be at least as reliable as an AJAX
    solution and certainly more powerful in brand sense (important for our work by hand), but they are not convinced.

    (2) they don't sell the product, simply confuse customers

    They are arguing that the grid of products is proven, and spreading of which will result in the loss of sales.
    I played with http://www.crumpler.com.au and while he couldn't load the first time, and when it worked it is loading for my ability to pay attention too, I think she did an impression of the mark on me and after the first minute or if I liked the experience. A guy admits that http://www.burton.com works well, but it would have been very expensive, like $100 K, says.

    Then there are the good examples of e-commerce Flex/Flash-heavy sites that go beyond what AJAX can do these days? And are there good up-to-date components or services for the construction of their?

    Thank you for your reactions/comments.

    Gary

    Thanks to all for the helpful comments and links. These guys are not fools, and I had a few crashes with Flash and Air lately (later in Adobe Media Player caused OSX for stopping power!).

    I am almost registered the customer after proposing Magento as a backend with 100% Flex on the home page of the interface. I am combining display products display the details of the product and the shopping cart in one page, and then when they decide to buy, they will use normal Magento for the withdrawal and payment. The customer also writes Magento for all back-end functions.

    Magento is rising star of caddies, but is particularly interesting to Flex developers because it is based on the Zend framework Adobe collaborates with lately for the successful integration of Flex, who added AMF support as standard. See also this: etween-flash-flex-and-magento-2 http://www.matsiya-technology.com/matsiya-introduces-the-first-amf-api-for-communication-b

Maybe you are looking for