10-16-2012 11:32 PM
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 ![]()
Thanks in advance everyone ![]()
10-17-2012 09:12 AM
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-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:
https://developer.blackberry.com/html5/apis/blackb
Hope that helps.