Not sure if anyone has come across this or how many have the ability to test this, but I am using two Android devices ( 2.3.x and a 4.x ) to test this code.
Summary of the code in question:
int networkMessage = agk::GetBroadcastMessage ( broadcastListener );
if ( networkMessage > 0 ) {
foundSomething = true;
//game[0] = agk::GetNetworkMessageFromIP ( networkMessage );
game[0] = agk::GetNetworkMessageString ( networkMessage );
//agk::Print ( agk::GetNetworkMessageString ( networkMessage ) );
agk::DeleteNetworkMessage ( networkMessage );
}
The documentation was a little unclear so this code is just meant to confirm that when hosting and using broadcast the network name that is used when hosting is actually available in the broadcast to use to join.
So while I was testing, I noticed that if I hosted on my 2.3.x device my 4.x device saw the broadcast and reported a game name, however, when my 4.x hosted, my 2.3.x device doesn\'t ever receive a network message on the broadcast listener.
Ideas? Bug?