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
Contributor
maheshkumar1990
Posts: 44
Registered: ‎01-07-2013
My Device: 9300
My Carrier: blackberry
Accepted Solution

Reg:Push Notification in Blackberry 10 cascades

Dear all,

               I need to implement push notification in my application,i have tried QML for doing notification but when the application is closed i can't able to see the notification,i have got Application ID and PPG Base URL** and also i have downloaded the sample push initator code how can i integrate into my application, can anyone guide me to do this

Thanks

Please use plain text.
BlackBerry Development Advisor (Retired)
mdandrea
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Reg:Push Notification in Blackberry 10 cascades

[ Edited ]

Hi,

 

You have to make sure that you registerToLaunch so that when the application is closed it will be launched when a new push comes in.

 

There are a number of resources you can find on the Push Service website and its associated web pages:

http://developer.blackberry.com/devzone/develop/platform_services/push_overview.html

 

Let me know if you have any specific questions that we can help you with.

 

Thanks,

 

Matt

Please use plain text.
Contributor
maheshkumar1990
Posts: 44
Registered: ‎01-07-2013
My Device: 9300
My Carrier: blackberry

Re: Reg:Push Notification in Blackberry 10 cascades

Hi ,

     thanks for reply, i have implemented Push notification using push collector example,but can't able to run the application,if i run it's showing only splash screen.?

Please use plain text.
BlackBerry Development Advisor (Retired)
mdandrea
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Reg:Push Notification in Blackberry 10 cascades

Sorry, you can't run the Push Collector sample or your own implementation?

 

Thanks,

 

Matt

Please use plain text.
Contributor
maheshkumar1990
Posts: 44
Registered: ‎01-07-2013
My Device: 9300
My Carrier: blackberry

Re: Reg:Push Notification in Blackberry 10 cascades

i can able to run Push Collector example, but when i integrate the app.cpp and app.hpp the application is not running.!!

Please use plain text.
BlackBerry Development Advisor (Retired)
mdandrea
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Reg:Push Notification in Blackberry 10 cascades

So, it sounds like you're able to run the Push Collector sample successfully, but you're having problems implementing your own push-enabled application.  Is that correct?

 

Have you had a chance to look at the Developer Guide that comes with the Push Collector: https://developer.blackberry.com/cascades/documentation/device_comm/push/index.html

It's supposed to help guide you in the implementation of your own push-enabled application.

 

Also, there are some debugging tools you can use if you're not sure why your app is having issues.

Take a look at this page here: http://developer.blackberry.com/cascades/documentation/getting_started/tools/debugging.html

 

Matt

Please use plain text.
Contributor
maheshkumar1990
Posts: 44
Registered: ‎01-07-2013
My Device: 9300
My Carrier: blackberry

Re: Reg:Push Notification in Blackberry 10 cascades

Hi,

     is there any step by step procedure for integrating push notification into my application

Thanks.

Please use plain text.
BlackBerry Development Advisor (Retired)
marco_dicesare
Posts: 76
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Reg:Push Notification in Blackberry 10 cascades

The links below have the steps you need to make your application push-enabled for Cascades for BlackBery 10

 

This link shows you how you need to configure your application:

http://developer.blackberry.com/cascades/documentation/device_comm/push/developing_a_push_enabled_ap...

 

Specifically, this link show code samples of how a sample application was made to accept push notifications using the PushService class and the invocation framework which are the main entities you need to know about:

http://developer.blackberry.com/cascades/documentation/device_comm/push/push_for_cascades_code_sampl...

Please use plain text.
Contributor
maheshkumar1990
Posts: 44
Registered: ‎01-07-2013
My Device: 9300
My Carrier: blackberry

Push Notification in Blackberry 10 cascades

Thanks for reply i have added as you said, but still am facing the error in main.cpp, when i declare these two lines (push notification lines error )into my main.cpp it's showing error my main.cpp

	const QString uuid(QLatin1String("5d452479-e929-4e80-be97-35c6cd0c7ffa"));

	RegistrationHandler *registrationHandler = new RegistrationHandler(uuid,
			&app);

	// InviteToDownload *inviteToDownload = new InviteToDownload(registrationHandler->context(), &app);
	// QObject::connect(registrationHandler, SIGNAL(registered()), inviteToDownload, SLOT(show()));
	Time *inviteToDownload = new Time(registrationHandler->context(),
			&app);
	QObject::connect(registrationHandler, SIGNAL(registered()),
			inviteToDownload, SLOT(show()));

push notification lines error

    Time mainApp;
    QObject::connect(&app, SIGNAL(fullscreen()), &mainApp, SLOT(onFullscreen()));

 how can i solve this issue ? 

Thanks

Please use plain text.
BlackBerry Development Advisor (Retired)
mdandrea
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Push Notification in Blackberry 10 cascades

Hi,

 

What do you mean exactly by "push notification lines error"?

Which lines in your code are giving you errors?

And, what's the exact error you get?

 

Thanks,

 

Matt

Please use plain text.