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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings
Accepted Solution

BB10 Push -> Push pps file is not open

I allready created this thread in the Cascades forums, but it seems that this place is more appropriate.

http://supportforums.blackberry.com/t5/Cascades-Development/BB10-Push-gt-Push-pps-file-is-not-open/t...

______________________

Dear Developers

 

I want to use push in my application. But when I run it, I get this nasty error. I googled it and I came at this blog post: 

http://devblog.blackberry.com/2012/11/push-permissions-changes/

 

I allready requested my signing keys again but that did not help to get rid of it. I also added this action:

<action system=”true”>_sys_use_consumer_push</action>

 

But my IDE says that it is deprecated. So I also tried to change the action into permission.

 

Someone has an idea on why that I get that error?

 

Thanks in advance

______________________________________________________
BB10-OAuth: GitHub
Highlighted
Retired
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: BB10 Push -> Push pps file is not open

The permission should be this in your bar-descriptor.xml:

<permission system="true">_sys_use_consumer_push</permission>

 

Have you looked at the Push Collector sample?

https://github.com/blackberry/Cascades-Samples/tree/master/pushCollector

 

And a very useful developer guide for it:

http://developer.blackberry.com/cascades/documentation/device_comm/push/index.html

 

Matt

Developer
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: BB10 Push -> Push pps file is not open

I already have that permission.

 

The only thing that I have is the following line of code

this->pushService = new PushService(APPLICATION_ID, TARGET_KEY, this);

qDebug() << "Connection exists: " << this->pushService->hasConnection();

 The APPLICATION_ID is the application Id that blackberry provided me in the e-mail. And the TARGET_KEY is just a unique string. The pushService->hasConnection() method returns false.

 

I followed these slides

http://hosting.desire2learncapture.com/RIM/Content/attachments/Archive/46/JAM48.pdf

______________________________________________________
BB10-OAuth: GitHub
Retired
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: BB10 Push -> Push pps file is not open

You were using "action" instead of "permission" it looked like.

 

The developer guide I linked to is also pretty useful in terms of what you need in your app and you can look at the Push Collector sample and try it out on your device to make sure you can receive pushes.

 

Note: You cannot use a simulator.  You must use a physical BlackBerry 10 device (or Dev Alpha) to test push.