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

Tags: BlackBerry Developers

Similar Questions

  • How to make the push notification as APN (notification of transmission of apple) with Blackberry API

    Hi all

    I want to know how to get push notification as we APN. I found a demo in the code example of RIM named "httppushdemo" with the server and client code.

    It works this way,

    My custom server (java servlet) push a few data for some static ip (on MDS with given port), on my desk and the BB device receive the MDS data, where my blackberry MDS Simulator is on. So in this case I got direct push notification when the application is activated.

    Flow for Simulator is so as:

    Server customized---> MDS (with specific ipadrees / port)<-------------- >

    (do)                                                              (receive the push)

    But my question is that, in the event of a real device, I have MDS to push the text to the specific ip address.  I have MDS in my device itself. So from where custom server I need to push the text?

    Direct to device? if yes then please tell me where I can change my bb device ip address. ?

    Thanks in advance,

    Tejas

    The AFN is similar to the notion of PPG in BlackBarry who is world BES MDS or Service of Push BlackBerry World BIS. Http you post your button to one of the PPG and it routes the message to the device for you.

    Keep in mind when you push user push BIS and BES that push you to the device with address e-mail or a PIN that you can push only per SPINDLE.

  • Need example of application on push notifications

    Hello

    Can someone give me some example code snippert to create notifications of type push on both Client and server...

    BES push is included as a sample in eclipse + plugin

    to BIS-push, I wrote a simplified example that you can find in the KB or the forums to push

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/sample-code-for-client-software-s...

    the article is here:

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/simplified-bis-push-client-sample...

  • Beginning with the Push Notifications

    Hello. I'm creating an application that requires access to the push notifications. I have a few questions.

    What is the difference between BIS and BES and these are the ways of ONLY to push?

    How can I sign up to allow me to test push notifications?

    How much does it cost?

    Server code can be written in any language?

    Once my code is running, my push works for any device and carrier or are there differences?

    Can I push as much as I want to, or are there limits?

    Thanks in advance.

    pg1181 wrote:

    What is the difference between BIS and BES and these are the ways of ONLY to push?

    BIS is a public Service to push when you use the Internet of RIM infrastructure

    BES is the Push Service of the company where you are hosting your own BES server.

    good news: BES Express Server is FREE

    pg1181 wrote:

    How can I sign up to allow me to test push notifications?

    Register for the evaluation: http://us.blackberry.com/developers/platform/pushapi.jsp

    pg1181 wrote:

    How much does it cost?

    Push Services are FREE

    If you need to guarantee delivery and want to be notified, you must push more Service

    where, up to 100,000 pulses per app per day are FREE

    pg1181 wrote:

    Server code can be written in any language?

    YES

    If you can send the HTTP Messages, then it works

    pg1181 wrote:

    Once my code is running, my push works for any device and carrier or are there differences?

    YES each BlackBerry has a unique device PIN - this PIN is used to identify devices

  • Push notifications don't work properly

    Hello! Ive had a problem with my notifications push on incoming messages in Whats App, Hangouts, messaging applications.
    I get no notification either when z3 is in "sleep" or active. Moreover, I only receive new messages when I open a respective application. Even if I have it running but not active at the moment, I don't get notifications unless I have switxh to the app and check a cat or an Inbox manually. Please help solve the problem.

    In this case, there could be a problem with your APN settings. See the following:

    https://talk.sonymobile.com/T5/Xperia-Z1-Z1s/Sony-Xperia-Z1-push-notifications-problems/m-p/522571#M...

  • It has Blackberry support Push Notification (aka Google PN) 10

    Dear supporters,

    We develop game for BB 10, coding only with native code without using a waterfall.

    We want to apply Push Notification service (aka Google PN).

    But I can't find any information guide how to do this.

    I mean PN using native code, not cascase.

    Please help me to confirm that this is supported or not? If have, please give me more details

    Kind regards

    Hello

    We have C push API. Here's the documentation explaining how they can be used:

    https://developer.BlackBerry.com/native/documentation/core/developing_push_enabled_application.html

  • BlackBerry app Push Notifications using PushWoosh does not receive notifications when closed and in the background

    I'm developing an application of crossed with phonegap and Jquery mobile platform. I'm trying to implement push notifications for the blackberry application using PushWoosh.

    I noticed that I'm not able to receive notifications when the application is in the background, or when it is closed. I get notifications only when the application is in the foreground.

    Any suggestions on this problem?

    I can use all the help.

    The app is a phonegap application Webworks.

    Thank you.

    Info:

    PhoneGap 2.8.0

    jQuery 1.9.1

    jQuery 1.3.1 Mobile

    SDK WebWorks

    PushWoosh

    Hello

    We just push our BB HTML5 / Webworks sample to our github repo:

    https://github.com/shaders/push-notifications-SDK/tree/master/SDK%20Sample%20Projects/BlackBerry-htm...

    Team Pushwoosh

    www.pushwoosh.com

  • Activate the Push Notifications on door Android

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

     


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

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

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

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

    QUESTIONS

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

      It's okay?

    1 yep

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

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

  • BB10 Push notification: PushPayLoad

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

    Here are my c# code:

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

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

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

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

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

    MyStringBuilder.AppendLine (msg);

  • Get a Push notification on app without head and application

    Hello

    I have included an app without a head for my current application, because I am handling becomes class PushService when push comes this application without a head. But I pushservice in running my application also to get called when comes to push, and my request for traffic not called when the push... How can I get push notifications in both without head and noraml app.

    You can take a look at the documentation
    https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/headless_apps/

  • BB10 - personalization of Push Notification

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

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

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

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

    Is it possible to do?

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

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

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

    All advice or suggestion will be greatly appreciated.

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

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

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

  • 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

  • How to configure the push notification in BB10?

    Hi all

    I want to do an application based on the concept of send and receive push notification. I'm having difficulties in your Setup. can anyone describe the steps to configure.

    Thanks in advance.

    Have you watched this...

    http://developer.BlackBerry.com/native/documentation/Cascades/device_comm/push/developing_a_push_ena...

    There are also some examples of applications that illustrate push them...

    http://developer.BlackBerry.com/native/sampleapps/

    After that if you're still stuck, it is better to ask questions of Push in this dedicated forum...

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/BD-p/Applications_using_Push_Tech...

  • Push notification client

    Hello

    I need to implement pushing a notice in my application. My application is a mobile service provider. Thus, they will send push notifications when there is a new notification be sent. Now, I want to implement in my code, how these notifications can be captured or received. Are there examples of code for this? or how to do this? can anyone help?

    Thank you

    Here is the example:
    https://github.com/BlackBerry/Cascades-samples/tree/master/pushCollector
    the article about this here:
    https://developer.BlackBerry.com/Cascades/documentation/device_comm/push/developing_a_push_enabled_a...

  • Push Notification error.

    I want to use Notifcation to push with the DPS Pro Edition.

    I created all certificates of Apple (developer, developer Push, Distribution, Distribution push).

    Push notification has been activated to create the app ID

    I want to add certificates: https://notification.digitalpublishing.adobe.com/notification/index.html#/cert

    But the following error message is displayed.

    What I am doing wrong?

    Thanks for your help.

    Bildschirmfoto 2015-02-22 um 15.35.02.png

    Hi Michael,

    Once you change anything (for example Apple Push Notification service ID App specific), you will need to recreate/updated updated mobileprovision profiles for this application. Also, make sure that you use right APNs as those certificates and mobileprovision profiles are specific App ID.

Maybe you are looking for