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

BlackBerry Push Development

Reply
New Contributor
Posts: 5
Registered: ‎06-23-2010
My Device: Curve
My Carrier: Orange

push notification application (server side)

Hi,

 

Currently we use the evaluation push server (BIS).

It is possible to send push notification only via the server that was issued the license.

1. Why is that?

2. In the production push notification, may we send notification from various machines?

 

We have few servers all over the world running our application. We want to use all of them to send push notifications.

What is the best solution to do it via the BIS?

We want to send notification from each of our servers...

 

Thanks,

Janiv Ratson.

New Contributor
Posts: 5
Registered: ‎06-23-2010
My Device: Curve
My Carrier: Orange

Re: push notification application (server side)

Anyone?

Thanks,

J.

New Contributor
Posts: 8
Registered: ‎05-30-2010
My Device: Curve
My Carrier: Unkown yet

Re: push notification application (server side)

The push can only originate from the ip address you specified when you registered for the evaluation push service.

 

I am currently waiting for production registration and will have a similar need - an ip address for development/testing purposes and an ip address for production. When I get the production credentials I guess I will have to contact them and see if multiple ip addresses are possible. 

 

Otherwise, if only one IP address is possible - I will have to use some method of getting the pushes to orginate from same IP address (certainly doable but would rather not have to mess with that)

New Contributor
Posts: 5
Registered: ‎06-23-2010
My Device: Curve
My Carrier: Orange

Re: push notification application (server side)

Would you please keep me posted?

I really need to understand if in production we must use the same IP.

 

If indeed the alerts may be sent only from a single IP, what are the best way to solve this issue and make it possible to send notifications from multiple machines?

 

One solution I can think of, is implementing a web service on the "notifcable" machine, and all other machines will send notification to via web service call to the "notificable" machine that will forward it to RIM cloud.

What do you think?

 

 

Thank you so much,

Janiv.

 

Highlighted
New Contributor
Posts: 8
Registered: ‎05-30-2010
My Device: Curve
My Carrier: Unkown yet

Re: push notification application (server side)

Sure - I will post back when I get the answers. They contacted me last Friday to get a copy of my app for "review". Yes, I was thinking same thing as you did - a web service on the machine which has the registered ip address - this web service would do the actual pushes for the other machines. Not the ideal situation - but it will do if no other solution is possible.
New Contributor
Posts: 3
Registered: ‎06-15-2009
My Device: Not Specified

Re: push notification application (server side)

Was there ever any resolution to this issue?  We are facing the same issue.

Trusted Contributor
Posts: 227
Registered: ‎09-03-2010
My Device: Not Specified

Re: push notification application (server side)

You can change the ip address of server push message come out. ???

Developer
Posts: 63
Registered: ‎10-25-2010
My Device: 9630
My Carrier: Ufone

Re: push notification application (server side)

Hi , i think ip address is not necessary now , i am using the same evaluation and also sending the push message from the server which is not registered .

Trusted Contributor
Posts: 227
Registered: ‎09-03-2010
My Device: Not Specified

Re: push notification application (server side)

[ Edited ]

I have problems getting the message from the server, I am developing a simulator widget. 

 What would be my possible problems or solutions

 

 

 

<script>
  var port = ####; // This is the port that I assign rim. I'm doing this wrong?
  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>