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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry Push Development

Reply
Developer
ekke
Posts: 908
Registered: ‎04-08-2010
My Carrier: vodafone

Push Service SDK fails

just worked through the Push Service SDK - was no problem to get the DebugPortal and other Helper Apps running.

But the interesting part of course is the development of own push services - and this isn't easy :smileysad:

 

* there's no simple import sample apps into eclipse

  (you have to extract jar files, add external jars, add javadoc, ...)

 

* there's no example for Push Services using BES

 

* didn't found any description how to test the sample app from eclipse using Simulator,

doesn't work out of the box. ...had expected that I can use the DebugPortal to initiate the push and then follow the client app using simulator and debugger

 

* sample server app wasn't easy

why not using eclipse wtp to create and run the server web-app ?

 

The new Push Services are really great - but if it's so hard to start with, some will give up.

 

I'll try more tomorrow - if there are any more documents or sample client or server apps using the new 5.0 push services - this would be very helpful - thanks in advance - you'll be referenced in my upcoming blog about my experiences using blackberry java 5.0 :smileywink:

 

ekke

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: https://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
Bullety
Posts: 135
Registered: ‎08-02-2009
My Carrier: T-Mobile

Re: Push Service SDK fails

Dear ekke,

 

I totally agree with you - I'm currently hanging on the registration for a push - just at the beginning.

 

The forum's nearly dead - my two threads are viewed many times but no one answers and the RIM documents do not help very much...

 

Do you want to push from a servlet or from another language than java?

 

Best regards,

 

Bullety

Please use plain text.
Developer
ekke
Posts: 908
Registered: ‎04-08-2010
My Carrier: vodafone

Re: Push Service SDK fails

in 2 hours there's a RIM webinar about Push Services (see also my post in java development)

perhaps I'll get some informations ...

Push Service Webinar April 13th

 

in the customer project I'm working on they had a push service app running from java 5 beta,

but this fails with 5.0 final. (push was done from a GWT application)

 

so now my task is to implement the new Push Service for BES/Enterprise pushes

 

pushing from a servlet would be fine

and (for other reasons) i'll also try to make it running in an OSGI server app

 

if I get something running I'll blog about it

 

ekke

 

 

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: https://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Contributor
makeurownrules
Posts: 21
Registered: ‎04-29-2010
My Carrier: 3

Re: Push Service SDK fails

Hi Ekke,

 

I am also working on push service for BalckBerry and have setup the server-side debug-portal. I have applied for evaluation for the application and haven't received any response from them. Can you tell me when does you recieved appid for the application ?

 

Do you have any sample code which you can share ? I have gone through the sample app provided by BlackBerry but I think its complex. As per the API we need to implement PushApplication and implements its methods.

 

Anyways it won't work on simulator so I ll try it on device.

 

Cheers,

KApil

Please use plain text.
Developer
ekke
Posts: 908
Registered: ‎04-08-2010
My Carrier: vodafone

Re: Push Service SDK fails

Hi KApil,

 

after 3 or 4 days I got my registration from RIM.

 

...at the moment I'm just working on another part of my application and will continue with the Push Service in one week or so.

 

I'll post my example then as sourcecode

 

ekke

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: https://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
Bullety
Posts: 135
Registered: ‎08-02-2009
My Carrier: T-Mobile

Re: Push Service SDK fails

Dear  makeurownrules,

 

it may take one week until you receive your data.

And do not forget you need sign keys in order to test it on your device (because most needed classes are signed).

Please use plain text.
Contributor
makeurownrules
Posts: 21
Registered: ‎04-29-2010
My Carrier: 3

Re: Push Service SDK fails

Hi Ekke/Bullety,

 

Thanks for your reply. I shall wait for couple of days for B'Berry' reply :smileyhappy:.

 

Ekke:  It would be really great if you can upload the source code. It would really help people to implement Push easily. If I get the reply from B'Berry then I would love to post the source code here.

 

Bullety: Thanks for your suggestion, I have signed keys for BlackBerry app and was able to run the app for other functionality on my B'Berry Bold device :smileyhappy:. My app uses http and some UI apis for BlackBerry.

 

Cheers,

Kapil

Please use plain text.
Developer
ekke
Posts: 908
Registered: ‎04-08-2010
My Carrier: vodafone

Re: Push Service SDK fails

this week I'm at JAX 2010 conference in germany -

next week I'll continue on push services

 

there are two use-cases: one pushing from a GWT portal app (done by another developer) and a second one from an OSGI Equinox Server app

 

ekke

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: https://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Contributor
makeurownrules
Posts: 21
Registered: ‎04-29-2010
My Carrier: 3

Re: Push Service SDK fails

Hi Ekke,

 

finally I got the account from blackberry but not able to run properly. I got this exception:

 

Unauthorized to push to URL: https://pushapi.eval.blackberry.com/mss/PD_pushReq uest with username

 

Any idea about this exception ?

 

Cheers,

Kapil

Please use plain text.
Developer
Bullety
Posts: 135
Registered: ‎08-02-2009
My Carrier: T-Mobile

Re: Push Service SDK fails

Dear makeurownrules,

 

Do you use custom code where you receive this error or is it the example?

 

 

Best regards,

 

Bullety

Please use plain text.