01-07-2013 02:06 PM
Hello,
I was wondering if anyone knows if it's possible to pass around game data via BBM?
So for example, a game would serialize a class or an array (or even just a json/xml file) and send it to one of your BBM friends. I know you can use invocation framework to pass an image around - http://devblog.blackberry.com/2012/11/bbm-invocati
Basically, is it possible to use BBM for real-time or turn base games.
Thanks for any info.
Jason
01-07-2013 03:38 PM
01-07-2013 04:37 PM - edited 01-07-2013 04:39 PM
For turn-based games (VGA Planets comes to mind) you might want to consider using email instead - there's an API to create a message and attach a file to it. I'm not sure, but there might be a way to access incoming emails too.
01-07-2013 04:39 PM - edited 01-07-2013 04:40 PM
Not possible, you probably use your own server for your game data.
Then why does this page
https://developer.blackberry.com/develop/bbm_conne
Say the following:
Developers can use a variety of APIs to give their apps access to BBM contact lists, user profiles, while enabling users of their apps to chat and share files such as pictures, voice notes, videos and music. Available for BlackBerry 10 ( core Native, Cascades and WebWorks) and BlackBerry 6 or later (Java and WebWorks).
The last line is obviously the most important one.
01-07-2013 04:58 PM
01-07-2013 07:13 PM
This can not be done through BBM on BB10 at this time. The api's for channels & sessions are currently only for Java.
01-07-2013 07:56 PM
This can not be done through BBM on BB10 at this time.
Where was this mentioned? Did they say it will be integrated post-launch?
01-10-2013 03:10 PM
Correct, streaming data from one application to another using BBM APIs is available for BBM on BlackBerry OS 5-7, but is not currently available on BlackBerry 10. It's something we're looking into post launch.
But you could accomplish this using the invocation framework for turn based games. You could create an InvokeActionItem that send a file with a custom extension/mime time over a BBM chat session in your app like this:
InvokeActionItem {
title: "Share Image Over BBM"
query {
invokeTargetId: "sys.bbm.sharehandler"
invokeActionId: "bb.action.SHARE"
uri: "file:///accounts/1000/shared/misc/file.tbg"
}
}
Your application would also need to register with the invocation framework as a handler for this extension/mime type. Then when the user receives the file, they could click on it to open it in your game.
Not as seamless as streaming directly from one application to another, but it could be easier for now than buliding your own server infrastructure.