JoinRoomInRange() is not triggering onJoinRoomDone() on android

0 votes

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,

 

asked Aug 6, 2014 in AppWarp by terdogan (22 points)

1 Answer

0 votes
 
Best answer

Hi,

 

Could you please let us know which Unity SDK version are you using?

Below is the link to the download page from where you can download the latest binary.

http://appwarp.shephertz.com/downloads/appwarp-downloads.php

 

answered Aug 6, 2014 by NaveenGShephertz (244 points)
selected Aug 6, 2014 by terdogan
Latest version fixed my issue.
Thanks
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...