Alljoyn use case sanity check

asked 2014-08-30 19:48:25 -0700

Phildo gravatar image

updated 2014-08-30 19:50:05 -0700

Hello- (hopefully) simple question here:

Looking into making a simple mobile game with local p2p connection across android/ios. Came across alljoin, and am getting mixed signals regarding whether this is an appropriate solution.

What I'm looking for is the ability to simply send strings from device running my game to device running my game, locally.

Is AllJoyn complete overkill? My game doesn't need to communicate to generalized nodes, and the idea of "API discovery" is either confusing me or totally unnecessary for what I want. I really only need to send a few well-defined messages back and forth (probably on the order of ~20 short strings per minute- not a super real-time game or anything).

tl;dr: Is alljoyn a sane choice for a cross-platform (ios/android) mobile game that requires only minimal device->device messaging?

If so, I would appreciate being pointed to any tutorials/documentation/etc... that you would think might be particularly helpful! If not, any alternatives would be welcome as well!

edit: clarification

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-03 00:37:10 -0700

bspencer gravatar image

The AllJoyn software framework was originally created to make it easier for developers like yourself to enable proximal mobile communication. AllJoyn is great for what you want to do and the most basic thing would be to look at the basic sample applications. You then need to decide either via software logic or UI interaction which side will be joining and which side will be binding a session. Or, although not recommended, you can have a star created where every instance of your game joins whatever it finds and starts sending strings. The problem with this is that you would be unable to scale the solution to support a large number of game instances. However, if you have 2-4 games in the network then this isn't that big of a problem.

On Android you can see the basic samples here.

On iOS you can see the basic samples here.

Let us know if you have more questions.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-08-30 19:48:25 -0700

Seen: 277 times

Last updated: Sep 03 '14