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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Scoreloop

Reply
New Developer
ideanesia
Posts: 11
Registered: ‎07-04-2011
My Carrier: TSEL

How to make Haxe NME working with BBM Integration

Hi All,

 

recently, I  learned the Haxe NME (http://www.haxenme.org/) where it help me to create quick game apps for BB10. Just wondering where it could connect with BBM as social network integration. Any samples or articles would be much appreciated. Many Thanks

Please use plain text.
Contributor
singmajesty
Posts: 29
Registered: ‎03-06-2012
My Carrier: AT&T

Re: How to make Haxe NME working with BBM Integration

Hi!

This would definitely be possible using a native extension. It requires a little bit of C++ to call the normal BlackBerry native APIs, then a little bit of handling to connect that back to Haxe. If you would be interested I would be more than happy to help
Please use plain text.
New Developer
ideanesia
Posts: 11
Registered: ‎07-04-2011
My Carrier: TSEL

Re: How to make Haxe NME working with BBM Integration

Many thanks joshua @singmajesty . Can't wait to learn it.

I will be waiting for your article or sample code.

Please use plain text.
Contributor
misugijunz
Posts: 24
Registered: ‎12-27-2011
My Carrier: Three - Indonesia

Re: How to make Haxe NME working with BBM Integration

+1 to ideanesia

 

plus maybe sample to integrate scoreloop.

Please use plain text.
BlackBerry Development Advisor
whoang
Posts: 60
Registered: ‎11-08-2012
My Carrier: BELL Canada

Re: How to make Haxe NME working with BBM Integration

[ Edited ]

Hello @ideanesia,

 

From a social network integration point, BBM would be able to enable your application to reach more audiences, help with your application discovery, and provide tighter interactions between your application users.

 

Users between your applications are able to engage directly using BBM Chat as you are able to invoke BBM from with your application.  User may invite their friends to download an application -- that invitation notification will be shown in user's friends BBM.

 

A good run down on some of the features may be found here:  Blog on "Integrate with BBM and Watch Your Application Go Viral"

 

Using the BBM Platform APIs would allow games, for example, to send a BBM to an opponent notifying their attention is needed to play the next move.

 

I will investigate and see potentially how NME Framework may be integrated with BBM 

William Hoang

Application Developer Advocate | Developer Relations
BlackBerry


Please use plain text.
Contributor
ajochems
Posts: 33
Registered: ‎01-12-2011

Re: How to make Haxe NME working with BBM Integration

I would also love to have BBM integrated into NME :Beta1:. Should be fairly straight forward adding it as an extension/library to haxe?

Please use plain text.
Contributor
singmajesty
Posts: 29
Registered: ‎03-06-2012
My Carrier: AT&T

Re: How to make Haxe NME working with BBM Integration

Hey guys,

 

I had started work to support BBM as a native extension.

 

In general, native extensions are easy to set up when you understand how they work. I've posted my progress as well as some tips and explanations, which should help if you guys want to assist in creating an extension:

 

https://github.com/jgranick/bbm

 

BBM is a little unique, because it doesn't work only as standard C/C++ calls, but also expects to be able to hook into the event loop of your application. NME 3.4.4 is not designed to allow this, but work was done in the development builds to make this possible. Scoreloop is similar, though I think Scoreloop also supports a version of the API that does not require events.

Please use plain text.
Contributor
singmajesty
Posts: 29
Registered: ‎03-06-2012
My Carrier: AT&T

Re: How to make Haxe NME working with BBM Integration

If you're interested in helping, please let me know. The time I can spend is limited, but I'd absolutely be happy to help
Please use plain text.
Developer
BGmot
Posts: 966
Registered: ‎11-24-2011
My Carrier: x

Re: How to make Haxe NME working with BBM Integration

> I think Scoreloop also supports a version of the API that does not require events.

What? that can't be true sorry...

Please use plain text.
Contributor
singmajesty
Posts: 29
Registered: ‎03-06-2012
My Carrier: AT&T

Re: How to make Haxe NME working with BBM Integration

[ Edited ]

http://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.scoreloop.lib_ref/topic/guide-...

 

What I meant to say, was a version that did not require integration with the main event loop.

 

"Case 1" of the above link is what was recently made possible with NME, and actually now available in NME 3.5 that was just released yesterday -- so no development build should be required. "Case 2" of the above link is what I was referring to -- being able to call for events periodically rather than having integration with the main of the application.

 

NME on BlackBerry leverages SDL, so enabling support for "Case 1" (which is the only way to support BBM, to my knowledge), actually meant making changes to SDL so that these events could bubble through. That work is done now, so let's move ahead

Please use plain text.