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

Adobe AIR Development

Reply
Developer
Developer
mdd
Posts: 225
Registered: ‎01-17-2012
My Device: PB

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

ok, that clears things up: don't even need a UUID at all... or an ANE to register...

 

and yes, that doc helps!  Thanks, I hadn't seen that one before... perhaps I will be able to include BBM after all.

 

Regards,

Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

That worked pretty well.  Still need to test it with a real contact.

Would be nice if this could be expanded to set the user's status.

 

Think this works.  Since QML data seems to be just text and in AIR it is a byte array:

var request :InvokeRequest = new InvokeRequest();
request.action = InvokeAction.SHARE;
request.target = 'sys.bbm.sharehandler';
request.data = new ByteArray();
request.mimeType = 'text/plain';
request.data.writeUTF( 'Hello World' );
			
InvokeManager.invokeManager.invoke( request );

 

Developer
Developer
mdd
Posts: 225
Registered: ‎01-17-2012
My Device: PB

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

[ Edited ]

here is my attempt:

var request :InvokeViewerRequest = new InvokeViewerRequest();
{
	request.action = "bb.action.BBMCHAT";
	request.windowId = "660.216.0554";
	request.windowHeight = 1000;
	request.windowWidth = 700;
}			
var viewer:Viewer = InvokeManager.invokeManager.invokeViewer( request );
{
	viewer.addEventListener( ViewerEvent.VIEWER_CREATED, viewerCreated );
	viewer.x = 10;
	viewer.y = 10;
	viewer.resize( 500, 500 );
	viewer.zOrder = 10;
	viewer.visible = true;
				
	function viewerCreated( event:ViewerEvent ):void
	{
		//viewer is created and ready to communicate with.
					
		trace( "viewerCreated:", event );
	}
}
trace( "Viewer:", viewer );

 returns a Viewer, but no event: guessing this is because its not supported on DevAlpha simulator.

 

I haven't seen any info on upcoming NA jam sessions, so seems no way I can get DevAlpha device...

Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

At this late date, probably not. Gold SDK is next week, and final release of the OS about a month later. I dont think RIM will have time.
New Developer
DitoAu
Posts: 31
Registered: ‎08-03-2012
My Device: Alpha C

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

hi, where i can watch the recorded?
BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

You can watch the recorded session here:  

 

How to integrate your app with BlackBerry Messenger on 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