08-13-2010 01:45 PM
Windows 7 Professional 64-bit
Visual Studio plugin
Simulator 9550 Storm v188.8.131.529
I have some problem trying to make a working Push sample.
I've got the client widget running in the simulator.
I'm running the server java sample (found at http://www.blackberry.com/go/pushwidgetsample) to send the push request. Client and server are on the same machine.
I changed the default PIN used in the server sample from 2100000A to 2100001A since this is my simulator PIN. When a try to send a push using 2100001A, the command console display this error:
Sending to http://localhost:28080/push?DESTINATION=2100001A&P
java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:28080/push?DESTINATION=2100001A&P
And if I try the specified url into a web browser i get:
HTTP Status 403 - could not map device 2100001a to an IPPP host.
As suggested somewhere, I did navigate to www.google.com or www.rim.com a couple of times prior to send the push(to register with the MDS), but this doesn't help.
I did uncomment the line push.application.reliable.ports=100 in C:\Program Files (x86)\Research In Motion\BlackBerry Widget Packager\mds\config\rimpublic.property.
Build number : 26
Build version : 184.108.40.206
Build Date : 2008/02/06
If I try to push to the default PIN 2100000A i get:
Sending to http://localhost:28080/push?DESTINATION=2100000a&P
Response: Content Length: 0
which seems to indicate success("Push connections" does increment in Statistics page), but no response since nobody listen on this PIN.
So why I can't push to 2100001A ?
Or is there a way to fix the PIN of my simulator to "2100000A" ?
Solved! Go to Solution.
08-18-2010 04:50 PM
Have you had any success pushing to an email address instead of a PIN?
Open the rimpublic.property file associated with the MDS-CS simulator you are using (can be found within the MDS\config folder of the BlackBerry Web Plug-in install folder) and verify what values are found in the [Simulator] section? It may look something like this:
[Simulator] #[CDK_MODIFICATIONS for Running Multiple Simulators] # Each simulator instance must have a unique IPPP port assignment # ie. Simulator fledge.exe command lines must have: # /ignore-data-port-conflicts /app-param=IPPPSourcePort: <port> Simulator.2100000a=MDS,firstname.lastname@example.org Simulator.2100000b=MDS,email@example.com Simulator.2100000c=MDS,firstname.lastname@example.org
Check to ensure the PIN / Email combination in rimpublic.property match what you are using in your push sample.
08-19-2010 08:17 AM
I did change the first line to:
and it's now working perfectly. Thanks a lot!
Just wondering, why the default pin used by the simulator and the mds would not match with a default installation of Widget Plugin for VS 2008 ? Does everyone using the Widget plugin has to do this in order to perform a push in the simulator ??