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
Highlighted
New Contributor
Posts: 6
Registered: ‎07-22-2012
My Device: Playbook
My Carrier: -
Accepted Solution

Problem with sharing app-specific data via BBM in 10.2

Hello - I'm having a problem sharing application-specific data with BBM in 10.2. I'm following the advice from a few postings here, and it seems to work in 10.1. I can receive the file on 10.2, but when I try to share on the same device I get this:

 

InvocationWrapper::onQueryFinished: no matching result from Menu Service for query
   mimeType=""
   uri=QUrl("file:///accounts/1000/shared/misc/My App Data.myapp") 
   data= "" 
   metadata= QMap() 
   perimeter= 0 
   action= "bb.action.SHARE" 
   target= "sys.bbm.sharehandler" 
   invokerIncluded= false 
InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent. 

This is the invocation I use, that works on 10.1 but not 10.2:

 

Invocation {
   id: invokeBBM
   query {
      InvokeQuery {
         id: invokeBBMQuery
         uri: "file:///accounts/1000/shared/misc/My App Data.myapp"
         invokeTargetId: "sys.bbm.sharehandler"
         invokeActionId: "bb.action.SHARE"
      }
   }
}

I've also tried it with a "text/plain" mimeType and a few other variants, same result. Has something changed in 10.2?

 

(And while I'm asking, any reason why I can't use data instead of a file uri? I have to convert the data to JSON, save the file, share the file, send, receive, save the file on the receiver, then open it, read it, and convert it back. Seems a bit roundabout if I could just share the JSON data. And it's the only reason my app needs shared files permission.)

 

Thanks!

 

 

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problem with sharing app-specific data via BBM in 10.2

This is an issue with the current BlackBerry Dev Alpha 10.2 release.  You can invoke BBM from C++, but invoking from QML is not working.

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
New Contributor
Posts: 6
Registered: ‎07-22-2012
My Device: Playbook
My Carrier: -

Re: Problem with sharing app-specific data via BBM in 10.2

Thanks!

 

Since I can't test it, then, are there any changes to app data sharing via BBM in 10.2 that would make the process more transparent for the user?

 

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problem with sharing app-specific data via BBM in 10.2

No, the features for sharing over BBM are the same in 10.2 as they were in 10.1.

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