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
Trusted Contributor
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800
My Carrier: Simulator

Push Notification from PHP

I need to push a notification to the home screen when a new entry is added to our database. There is a PHP file on the server which adds entries into the database. How would I have the PHP file link to the push feature?

 

I have been looking at http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-Create-a-Push-BlackBerry-... to try to get an understanding of push but I am not proficient with Java for the most part so I don't understand that portion. I would ideally need to just push a number, indicating how many notifications there are. For example:

 

PHP file adds 3 entries --> pushes the number "3" --> my listener.html file of the app receives the "3" and does 

blackberry.app.showBannerIndicator('images/icon.png', "3");

 

Would anyone know how to do this? Thanks.

Highlighted
Developer
Posts: 222
Registered: ‎11-05-2011
My Device: Z10
My Carrier: Beeline

Re: Push Notification from PHP

If RIM can provide server side functions of Natification API with PHP it's can help us developers using that API --> and it can.give.more.quality.Application to platform using that API.