Hello,
I am trying to create a game with Unity. As I mention on title, onJoinRoomDone() is not triggered when I try to join a room with JoinRoomInRange(). This scenario works when I run the same code from Unity but not on Android.
I also tried to join a room with JoinRoom() and I got response for Android. I don't see any exceptions or error on logcat.
Is there any way for me to debug or open some logs to trace the problem?
Below is how I initialize and call the functions:
WarpClient.initialize(apiKey, secretKey);
WarpClient.GetInstance().AddConnectionRequestListener(listen);
WarpClient.GetInstance().AddLobbyRequestListener(listen);
WarpClient.GetInstance().AddNotificationListener(listen);
WarpClient.GetInstance().AddRoomRequestListener(listen);
WarpClient.GetInstance().AddUpdateRequestListener(listen);
WarpClient.GetInstance().AddZoneRequestListener(listen);
WarpClient.GetInstance().Connect(FB.UserId);
public void onConnectDone(ConnectEvent eventObj) {
if(eventObj.getResult() == 0) {
Debug.Log("Listener.cs - onConnectionDone: Sending request: JoinRoomInRange()");
WarpClient.GetInstance().JoinRoomInRange(0, 1, true);
}
}
}
public void onJoinRoomDone(RoomEvent eventObj) {
Debug.Log("Listener.cs - onJoinRoomDone : " + eventObj.getResult());
if(eventObj.getResult() == WarpResponseResultCode.RESOURCE_NOT_FOUND) {
Debug.Log("Listener.cs - onJoinRoomDone: Sending request: CreateRoom()");
}
else if(eventObj.getResult() == 0) {
Debug.Log("Listener.cs - onJoinRoomDone: Sending request: SubscribeRoom()");
}
}
Thanks,