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

Web and WebWorks Development

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

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 :smileyhappy:

 

 

Thanks in advance everyone :smileyvery-happy:

Retired
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10

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:

 

https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/invoke-card/Card

 

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:

 

https://developer.blackberry.com/html5/apis/blackberry.invoke.html

 

Hope that helps.

 

@erikjohnzon
erjohnson@blackberry.com