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

Native Development

Reply
Developer
hendrik
Posts: 63
Registered: ‎09-10-2009
My Device: Z10, Bold 9700
My Carrier: O2 Germany
Accepted Solution

Hub integration for 3rd party applications

It is possible for an application to create notification items that appear in the BB10 hub.

 

But is it also possible to create messages that appear in the hub with a custom application icon in a custom application folder? Or is this reserved for services like Twitter and Facebook and not open to developers?

 

So far I have only found sample code for notification integration into the hub.

----

My Twitter: @hendrik_dev
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Hub integration for 3rd party applications

It appears as if BlackBerry is keeping those API's secret until Jan. 30th


Read my thoughts on BlackBerry Development at news.ebscer.com
BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Hub integration for 3rd party applications

Applications can put a custom message in the hub, but all third party notifications appear in the same folder with the same icon.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: Hub integration for 3rd party applications

If anyone wants to get ready for this here is how you do it:

https://developer.blackberry.com/cascades/reference/bb__platform__notification.html

 

This fires notifications, if you specify a title and body then the notification will also create an entry in the Hub. The next thing you want to do is add an InvokeRequest so that when the user selects the item in the Hub it actually does something (invoke your app to a certain page/state, invoke the browser etc). 

 

You can get your InvokeRequest tested as well as Notifications (without the title and body) today then add in titles and bodies as soon as Hub is externally available.

Garett
@garettBeuk
--
Goodbye everybody!
Developer
hendrik
Posts: 63
Registered: ‎09-10-2009
My Device: Z10, Bold 9700
My Carrier: O2 Germany

Re: Hub integration for 3rd party applications

Thanks, then notifications are everything that is currently possible regarding hub integration. I just implemented this and am currently working on invocations.
----

My Twitter: @hendrik_dev
New Developer
kpuneet
Posts: 16
Registered: ‎04-11-2013
My Device: z10

Re: Hub integration for 3rd party applications

Hi Garett,

I am trying invoking my application from Hub Notifications  and i am trying adding the following invocation request

 

InvokeRequest invokeRequest;

invokeRequest.setTarget(INVOKE_TARGET_KEY_OPEN);

invokeRequest.setAction(BB_OPEN_INVOCATION_ACTION);

invokeRequest.setMimeType("text/plain");

 

notification->setInvokeRequest(invokeRequest);

 

Along with that  i am defining  and same in my bardescriptor.xml

#define BB_OPEN_INVOCATION_ACTION "bb.action.OPEN"

#define INVOKE_TARGET_KEY_OPEN "MyApplication.invoke.open"

 

 

The above code is working fine till it is giving me the link of my current app and I am able to open the same page in which i was working.

But I want the invoke request to call some other "C++ Method" which will re-direct it to some other page in same app but  i am not able to get that how to do it ..can you please share some example .

 

 

Thanks

Puneet

 

Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: Hub integration for 3rd party applications

Hi Puneet and welcome to the forums!

 

Could you start a new thread? This is a great question however this thread is already marked as solved.

Garett
@garettBeuk
--
Goodbye everybody!
New Developer
kpuneet
Posts: 16
Registered: ‎04-11-2013
My Device: z10

Re: Hub integration for 3rd party applications

Hi Garett,

Thanks for response,I can open new thread

But I managed to solve it  ...

I can post the solution on the thread but please let me know shall i open new thread or post it here.

 

 

Thanks

Puneet

Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: Hub integration for 3rd party applications

A new thread would be good, always nice to share this info with the community :smileyhappy:

Garett
@garettBeuk
--
Goodbye everybody!