BB10 - customization BB Hub and Push Notification Messages

Hi all.

The push notification are push to the notification in the hub of BlackBerry. Is it possible for example to create a new label to a custom in the hub application and have the notification being pushed in the custom label?

No, it is not possible for third-party applications.  Only some apps approved (such as FaceBook, Twitter and LinkedIn) have had access to their own 'space' in the hub.

Tags: BlackBerry Developers

Similar Questions

  • iPhone cuts read the mail when you open the mail application and pushing new messages

    Everytime I open the mail application on my iPhone 6 (9.2.1) all my mail previously reading disappears as soon as it pushes new messages.

    I found no adjustment that deals already read the mail on my iphone.

    Any ideas? And no it's not because I'm opening mail on the server's desktop in outlook that I rarely use more except as archive. I usually open mail on my iPhone first.

    Please confirm that you are in the mailbox of all mailboxes and not the mailbox unread. To do this, up on the back of boxes button at the letters on the top.

  • Bland success message, make the "sticky" notification message

    APEX 4, RDBMS 11 GR 2, theme 13 (gray/blue)

    I attempt to use dynamic action of fade out of success messages and notification messages (error) "sticky."

    Theme 13, the id of the div that is used for the #SUCCESS_MESSAGE # and #NOTIFICATION_MESSAGE # is t13MessaqgeHolder.  Div for a success message class is t13SuccessMessage and a message notification is t13Notification.


    I noticed other themes use a (different) unique id for the success and the notification messages, but my company has standardized on theme 13.


    (Full disclosure: this code below is from Jonathon Taylor, How - to's of the APEX Web site)

    On the zero page, I create an event with the REAL action Page Load performs the following JavaScript code

    $("#t13MessageHolder").delay (1000) .fadeOut (3000);

    This works fine but the success and the notification of messages fade.  Is it possible to structure the code so that the messages of success fade, but the notification messages are sticky?

    If there is a way easier / better for this that I'm looking for, feel free to offer your recommendations.

    Thanks in advance.

    John

    If the divs resembles

    div id="t13MessageHolder" class="t13SuccessMessage"
    

    then, everything you need to do is change the selector, as Scott tries to get to.

    However, to select per class / id, you must use a dot instead of a hash.

    $(".t13SuccessMessage")
    

    You don't need. parent() unless you need to choose the parent of the selected item, which is not necessary if the message div is built as I wrote above - but to determine that we would need to see the actual html structure.

  • 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);

  • 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

  • Android.cfg file not created - BB10 Push Notification

    I'm enbaling push notification in my android app BB10 runtime. I'm following this doc to implement the push. I developed the Android using Novell project. I tried different ways to create the file cfg under bar.

    1. Before you create the apk, added the cfg file in the root of the project name of the application (tried naming as android.cfg also).
    2. Using this apk, I generated the .bar file, but Android folder, res folder and apk file do not exist, cfg file is not exist.
    3. Then I tried to add file cfg under bar file after you have created the apk but before signing bar leader, but I started getting the following error:
    Error: No manifest.
    Exception in thread "main" java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at net.rim.tools.signing.SigningMain.main(SigningMain.java:72)
    Caused by: java.lang.Exception: java.lang.RuntimeException: No manifest.
            at net.rim.device.codesigning.barsigner.BarSigner.if(Unknown Source)
            at net.rim.device.codesigning.barsigner.BarSigner.main(Unknown Source)
            ... 5 more
    Caused by: java.lang.RuntimeException: No manifest.
            at net.rim.device.codesigning.barsigner.BarSigner.try(Unknown Source)
            ... 7 more
    

    I see a lot of post where push is activated with success in app Android Runtime BB10. What I'm doing wrong here?

    Hey Subha_Murali,

    Follow the instructions on this page or complie the sample application. It always works for me flawlessly!

  • On my iMac running training camp. I get a message saying that my PC cannot find the wireless hub and it is unable to connect to internet Explorer. Help!

    Connection Wi - Fi with internet explorer 8

    I'm under Boot Camp on my iMac with OS 10.6.8. I am connected to the hub of my son-in-law over a wireless connection.  I can access the internet using Safari on the side of the Mac of the partition successfully, but I can't access the internet by using a wireless setup on the side of the PC of the partition by using Internet Explorer 8.  I get a message saying my side PC created by Boot Camp can not find the wireless hub and is unable to connect to internet Explorer.  Help!

    Hello

    ·          What is the version of the operating system running on your computer?

    I suggest you to install the drivers for the network card on the manufacturer's Web site and check if it helps.

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    See: http://windows.microsoft.com/en-US/windows/help/wired-and-wireless-network-connection-problems-in-windows

  • 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

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

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

  • On BIS and public PPG for push notifications

    Hello!

    My name is Christian and I'am really newb on everything concerning the mobile devolopment. However, I had to develop a server push initiator and a small client side app for testing and so.

    Along the registration process for the Service Push, I received all the necessary info from RIM (url PPG, app ID, cp ID, password, etc.), but I have some doubts and questions.

    One is related to a provider of content and PPG URL ID

    -What is http://cpXXX.pushapi.eval.blackberry.com for?

    So far, I've tested. "pushapi.eval.blackberry.com" works well on the side of client or server. I mean, using this URL my initiator to push could send a notificacions and, on the other side, the client was able to register and recive notifications.

    Which brings me to the next question... What should I do with a content provider ID (I don't even use it)?

    I read that in production, PPG URL is something like '. http://cpXXX.pushapi.» BlackBerry.com".» (here make sense to me that content provider ID)

    Another issue is that if this kind of URL is for server-side? Or is it just for the client side?

    Lately our client we asked for the IP addresses and Ports of blackberry PPG because the Push Server Inititator will be located behind a firewall and they must activate just the IP address and Ports required. (white list)

    We want to meet all you need to grow an initiator to connect Production PPG or PPG Eval.

    Ty a lot in advance!

    PS: Sorry for my English. I'm working hard on it ;-)

    Hello

    You use below url in Server Code

    https://cpxxx.pushapi.na.BlackBerry.com  Please use CPID instead of xxx .

     

     (for example if your cpid = 234 so now the url " https://cp234.pushapi.na.blackberry.com").

    Note:-If you transfer evl in production can convert server-side and client-side detail below.

    Beside Server :-appid, password, url

    Client-side:-PUSH_PORT, BPAS_URL, APP_ID.

    ------------------------------------------------------------------------------------------------------------------------

    feel free to press the button like on the right side to thank the user who has helped you.

  • How to deploy Push Notification plugin for PGB CLI 6.3.0 Server and Client?

    Hello friends, I want to deploy the plug-in can push notification app, compiled by PGB CLI 6.0. But suggest to many doubts after reading the documentation... example: how to get the ID register which is located on the client side in mobilies? or you do not need this ID? If anyone has a site with step a step to set up the server and the application, please post the link here... I'm full of doubts... Thank you very much.

    Here is a detailed tutorial of the push plugin.

    Here's how to set up your credentials when you use PhoneGap Build.

  • PHP push notification - type registration

    Hello
    I need to send notification messages to peripheral bb10 using my server PHP script. I used the form of evaluation of the BlackBerry Push Service to register, select BlackBerry Internet Service transport for growth and Essentials of push Blackberry as Service Push type.

    I checked the posts, which one who seems to have been resolved (http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Problem-with-SEND-Push-Notificati... and making all kinds of changes to the data to be sent and headers, but not luck: push server does not respond (curl_exec is false) and attempt to parse the xml ends with error)
    An XML parser error occurred
    End of the invalid document

    The sent data now have the form:
    $data = '-'. $boundary.
    '
    http://www.openmobilealliance.org/tech/DTD/pap_2.1.DTD">




    ' .
    '--' . $boundary. "\r\n".
    "Content-Type: text/plain". "\r\n". "
    "Push-Message-ID: '." $messageid. "\r\n\r\n".
    stripslashes ($message). "\r\n".
    '--' . $boundary. '--';

    And transfer curl options are defined as:
    curl_setopt ($ch, CURLOPT_URL, "https://cpXXXX.pushapi.eval.blackberry.com/mss/PD_pushRequest"); (replaced with email of record value xxxx)
    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_buffersize, CURLAUTH_BASIC);
    curl_setopt ($ch, CURLOPT_USERPWD, $appid. ':' . $password); (replaced appid and password with the values of the registration email)
    curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt ($ch, CURLOPT_HTTPHEADER, array ("Content-Type: multipart/related;")) Boundary =". $boundary. "; type = application/xml"));

    2 attempted to use javascript to POST XMLHttpRequest in a page on the same server. The result was:
    XMLHttpRequest does not load https://cpxxxx.pushapi.eval.blackberry.com/mss/PD_pushRequest. No "Access-Control-Allow-Origin" header is present on the requested resource. So, the original 'http://my_server_address' is not allowed access.

    3. I used the same code XMLHttpRequest in webworks launched from z10 camera app (the code can be found here - https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/pushCaptureBasics/pushInitiator) and
    Here is the result:

    .. .and the Capture application seems to take notice, by launching again push (does not display the message, but it's another thing ).

    The only thing that now comes to my mind, it is that the push server does not accept my server push messages. But how do I solve this problem?
    Any guidance is appreciated.

    Well, glad to have found a solution to this: after obtaining the references of Production Service Push BlackBerry have used their and it actually works with this code here http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Cannot-send-PHP-Push-message-usin...

  • BACKFLIP: Where is... Led notification and Alerts notification for Facebook/MySpace?

    I have a few questions. My first question is, I have a lot of apps that say they can warn my by LED light. I put it to inform me, but when I get a text or message twitter the led lights. The circle of the speaker a light? If so is there a setting I have to go to?

    My second question is, are there not facebook and Myspace apps which will inform you actually when you receive something. (message, friend request). I have not a single notification since Ive had the apps.

    Any help will be greatly appreciated.

    1. the phone has not built in LED indicator. The circle you are referring is the light sensor. It is the sensor that helps auto adjusts the screen backlight according to surrounding it.

    2. for FB and Myspace notifications, you have two options: a) check your settings online within the FB and Myspace on PC site and allow notifications no longer pushed to your email or text or b) download the official FB and Myspace application on the market. These applications have built in notifications. I suggest you go with option A as option B consumes more battery. It is preferable that you play with the first two methods to find which suits you best.

  • Moto G4 - push notifications to stop functioning when the phone is idle / inactive

    Hello!

    I have a very annoying problem with my G4 bike purchased in the UK.

    Problem:

    My push notification comes to app and gmail to stop working when the phone is idle / inactive.

    When I use any application or when I put just the phone side push notifications work fine. They appear on the lock screen and beep.

    After a few minutes of not using the phone, the message to stop the spread. The sender indicates that a tick and the Moto G4 does not show notifications of type push until the phone is activated and unlocked. It is very annoying, because I already missed several attempts to call. This problem occurs with the Wifi or data plan. It is not a What'sApp of settings as it works very well for a while.

    Text messages and phone calls work well, just a data plan seems to go off when idling and never come back until unlocked (even then it takes a while). WiFi seems somehow to maintain a connection.

    I tried:

    • change What settings the sApp
    • disconnection/connection gmail account
    • remove the operating system of the device cache
    • disable the whats of ap battery saving options and all services appear to be relevant
    • WiFi seems somehow to keep the phone, but only data stops immediately, sending fn when idle
    • Restart in safe mode-> the same problem with meeting places. WiFi seems to work, data plan do not when idling

    Is this a known issue? Everyone knows the problem? To me, it seems that the camera seems to move from the internet and do not reactivate until this that unlocked.

    Any suggestion would be appreciated,

    Thank you!

    It seems to work now after clicking: 'Reset the settings App' in the top menu right in "parameters - apps-> gear-> battery optimization"!

    I haven't seen this solution anywhere else. I did the reset done only because I tried to disable optimization for almost all applications gradually. Without success, I clicked on 'Reset the settings App' and suddenly push notification for all work! Yes!

Maybe you are looking for

  • To access the other account via external hard drive

    MacBook Pro (13 inch, early 2011) V.10.11.6 El Capitan (15G 31) To summarize what I've lived, I got a kernel panic, by connecting to any account. So I tried to fix it by zapping the PRAM and NVRAM, tried the reset SMC, and both did not work. So I ins

  • Install firefox on an external hard drive

    given that I live 6 montths on Gran Canaria and 6 months in the Netherlands, I would like to install firefox on an external hard drive, so that I have only to move somewhere for theother the external hard drive. then I can use all the information suc

  • Satellite L300-15V - how to restore BIOS & DMI?

    Hello! Please help restore the default settings of the BIOS and its content very.DMI is necessary to restore the data, and the value of SN, UUID and others, this utility is not found.Laptop: Toshiba Satellite L300-15VModel: PSLBCE-00L008RU Does not w

  • Windows Media Player will only play a sound with no video .avi and .mov

    I started having a problem where the Windows Media Player will only play the audio portion of my .avi and .mov video files. These files were created by my FlipCam or my Sony Handycam. I never had problems until recently and think that it is due to so

  • How can I keep my Media Player to replace the published info that I have?

    I have Windows XP, Media Player 11.  I added the music I burnt my Media Player.  I keep trying to change the news, but the media player keep coming back again to "unknown album" and sometimes change the album art that I've added to a different album.