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
Highlighted
Contributor
Posts: 15
Registered: ‎07-23-2010
My Device: Not Specified

How to test the sample push example on a simulator??

Can anyone help me figure out how to test the sample push application on the simulator?

 

I have tried to test it on my device, but the problem is that I cannot access the PC from the internet I don't have an IP address and the localhost thing won't work

 

please can anyone give me a way to test the push sample application

 

thank you

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: How to test the sample push example on a simulator??

You can't test BIS push on the simulator.

Contributor
Posts: 15
Registered: ‎07-23-2010
My Device: Not Specified

Re: How to test the sample push example on a simulator??

so how do you test the sample application ??

 

any solution??

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: How to test the sample push example on a simulator??

You sign up for a sandbox push eval account, install the server-side sample app, hand held sample app on a real BlackBerry device and away you go.

Contributor
Posts: 15
Registered: ‎07-23-2010
My Device: Not Specified

Re: How to test the sample push example on a simulator??

[ Edited ]

How can I install the server side sample app on my PC and have access to it from the handheld if my PC cannot be accessed from the internet ( I don't have a fixed IP)

 

from what I have found the only way to test the push sdk sample app is:

1. Install the server-side sample on a host server with a fixed IP address ( not on a local PC)

2. Install the client side sample app on the BIS enable handheld

 

 

is this correct??

 

 

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: How to test the sample push example on a simulator??

If you register for Push Services SDK, then since some time in the Credentials you got the information:

 

Source IP: Whitelist no longer required

 

You can send Push Messages out from your local PC without a static IP

(I'm doing this always while testing Push Services:

working from a Home Office with DSL and changing IP's each day)

 

Attention for PLUS services !

If you register for Push Services PLUS you also have to register a 'Base Notification URL' -

something like 'http://myserver.de'

pushing messages you send the notification URL, per ex. /notifyme

then BlackBerry Push Server notifies you at: 'http://myserver.de/notifyme'

 

now you can use a service like DynDns.org to get the notifications

 

or - what I'm doing:

I have a server with static IP, but don't want to do the development tests there, but from time to time I deploy to this server to test it from a 'real server'.

while working from my home office I forward the notification from the real to my dyndns address

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
New Contributor
Posts: 2
Registered: ‎12-14-2012
My Device: Simulator
My Carrier: Movistar

Re: How to test the sample push example on a simulator??

Hi, if you mean push messages you can find the HttpPushDemo here: https://developer.blackberry.com/java/documentation/int_http_push_1988896_11.html

 

You also need the MDS simulator, that you can find it here: http://us.blackberry.com/sites/developers/resources/simulators.html

 

I suppose you have the BlackBerry JDE Eclipse but you can find it here: http://es.blackberry.com/developers/javaappdev/#

 

In the HttpPushDemo you'll find a readme. Skip steps 3 and 4 because I think they refer to an old BlackBerry JDE.

 

One last thing: my Eclise started with Java7 and that caused a problem with some regex pattern. If you experience this problem, try using Java6.