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

Web and WebWorks Development

Regular Contributor
Posts: 73
Registered: ‎04-02-2012
My Device: BlackBerry Limited Edition Z10, BlackBerry Bold 9900, BlackBerry PlayBook Tablet
My Carrier: Bell Mobility

Webpage with Share framework

Hey Everyone, 


Quick question. I'm working on a simple webworks app. The idea behind it is to have a webpage wrapped in HTML to make it an "app" but I want to have the ability to share the page the user is on via BBM, Text Message, and Email. 


I checked the API reference I found shareoncontent but I'm not sure what the process or code example would be, any help is appreciated Smiley Happy



Thanks in advance everyone Smiley Very Happy

Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: Webpage with Share framework

This is a great question. Currently we are building a share framework. I can't commit to a release other then say soon. In the short term the context menu provides a share feature, if this is not enough, you can build your own using this as a sample:




It creates a card, that underneath queries the share framework for the specific targets based on the defined type ie: image/*. From there it builds the actual UI portion using Jquery Mobile BB10 Theme. You will just need to hook in a blackberry.invoke.invoke() with a proper request object when a item is clicked and pass it the correct data. More information in the invocation framework can be found here:




Hope that helps.