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
Developer
Curahee
Posts: 229
Registered: ‎01-12-2013
My Device: z30
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
Retired
mdandrea
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10

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
Curahee
Posts: 229
Registered: ‎01-12-2013
My Device: z30

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
mdandrea
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10

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.