Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to push notifications into Blacknberry html5 applications for Bb 7.0 OS mobiles etc

what and where is push.htm? Is it  the code below in    and what is my next step ?

 

 

https://developer.blackberry.com/bbos/html5/apis/blackberry.push.html

 

Code Example:

<script  type="text/javascript">
  var port = 1234; 

  function doMySubscription() {
    //See if they have a BIS transport.. if so use it
    var transports = blackberry.system.getTransportList();
    found = false;
    for (var i = 0; i < transports.length; i++) {
      if (transports[i].name == "BIS") {
        found = true;
        blackberry.push.openPushListener(handleMyReturnData, port, transport[i]);
        break;
      }
    }
    if (!found)
      blackberry.push.openPushListener(handleMyReturnData, port);
  }

  function handleMyReturnData(data) {
    if (data != null) {
      var myRecievedData= blackberry.utils.blobToString(data.payload)
      alert(myRecievedData);
    }
    else
      alert("No data from the push");
  }

  function cancelSubscription() {
    blackberry.push.closePushListener(port);
  }
</script>
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to push notifications into Blacknberry html5 applications for Bb 7.0 OS mobiles etc

Astanley Iam    waiting for your reply to proceed further with push notifications for my application.

 

 

I have edited  in index.html

 

I have edited in config.xml follwoing the below link

 

 

https://developer.blackberry.com/html5/apis/blackberry.push.html

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to push notifications into Blacknberry html5 applications for Bb 7.0 OS mobiles etc

Why did you stopped to support /reply me back  to my push notifications query?

 

 

Please I need your help Urgent.