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
Developer
wantoun
Posts: 165
Registered: ‎10-04-2010
My Device: P'9982 & Z10
Accepted Solution

blackberry.bbm.platform.users.shareContent is undefined

[ Edited ]

I'm trying to share content via BBM through my app but when i use the blackberry.bbm.platform.users.shareContent function, I get the following error that it's undefined:

TypeError: 'undefined' is not a function (evaluating 'blackberry.bbm.platform.users.shareContent()')

 

I checked the blackberry.bbm.platform.users object and it only has the inviteToDownload function. (check attached screenshot)

 

How is this possible? am I missing something required?

 

My config.xml contains:

 <feature id="blackberry.bbm.platform" />

<rim:smileytongue:ermit>bbm_connect</rim:smileytongue:ermit>

 

Also, inviteToDownload works fine and I'm using the latest SDK: BlackBerry 10 WebWorks SDK 1.0.4.11.

 

Wadi
Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,685
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: blackberry.bbm.platform.users.shareContent is undefined

shareContent is not supported on BlackBerry 10.  The BBM SP session and channels that allow for device to device communication are not supported in BlackBerry 10.  These are supported in BlackBerry OS 5 to 7.

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
Please use plain text.
Developer
wantoun
Posts: 165
Registered: ‎10-04-2010
My Device: P'9982 & Z10

Re: blackberry.bbm.platform.users.shareContent is undefined

Thanks Mark.

So is there an alternative to share app related information to another user's app via BBM?
Wadi
Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,685
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: blackberry.bbm.platform.users.shareContent is undefined

You can use the invocation framework to share a file over BBM.  This does require the recipient save the file on their BlackBerry.  

 

We are working on re-designing the peer to peer connections for BlackBerry 10.

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
Please use plain text.