How to send/receive sessionless signals in Unity C# Android?

asked 2014-05-12 14:40:27 -0700

arkatufus gravatar image

updated 2014-05-13 01:31:29 -0700

I've been scratching my head for a few days now, trying to send a sessionless signal between android devices. This is what i have (boiled down to) so far:

msgBus.CreateInterface(interfaceName, AllJoyn.InterfaceDescription.SecurityPolicy.Off, out iface);

iface.AddSignal("searchRoom", null, null);

busObject = new LobbyBusObject(iface, servicePath);

msgBus.RegisterSignalHandler(SearchRoomHandler, busObject.searchRoomMember, null);

The sender can see its own signal, but not the other devices. All I can find on the internet is a post on the old forum about adding AddMatch("sessionless='t'") and the ALLJOYN_FLAG_SESSIONLESS flag on the BusObject Signal function, but so far it just doesn't work.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-13 11:18:47 -0700

mitchw gravatar image

Take a look at this code from the unit tests, it shows how to setup and use sessionless signals in Unity C#.

edit flag offensive delete publish link more


Thanks, that works. I guess the missing part is the interface declaration on the AddMatch. One question though, does the unit test actually work? because the AddMatch on that example is missing an apostrophe

arkatufus ( 2014-05-13 15:22:06 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-05-12 14:40:27 -0700

Seen: 266 times

Last updated: May 13 '14