04-16-2013 10:07 AM
I allready created this thread in the Cascades forums, but it seems that this place is more appropriate.
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:
I allready requested my signing keys again but that did not help to get rid of it. I also added this 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
Solved! Go to Solution.
04-16-2013 10:45 AM
The permission should be this in your bar-descriptor.xml:
Have you looked at the Push Collector sample?
And a very useful developer guide for it:
04-16-2013 10:51 AM
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
04-16-2013 10:57 AM
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.