Can't Join the room I created. OnJoinRoomDone returns onJoinRoomDone: 2

0 votes

Good day, I'm new to AppWarp. I've been trying to add a multiplayer mode to the game I created but seems like I can't join the room I created. Would certainly appreciate your help.

	public void onJoinRoomDone(RoomEvent event){
		log("onJoinRoomDone: "+event.getResult());
		if(event.getResult()==WarpResponseResultCode.SUCCESS){// success case
			this.roomId = event.getData().getId();
			warpClient.subscribeRoom(roomId);
		}else if(event.getResult()==WarpResponseResultCode.RESOURCE_NOT_FOUND){// no such room found
			HashMap<String, Object> data = new HashMap<String, Object>();
			data.put("result", "");
			warpClient.createRoom("superjumper", "shephertz", 2, data);
		}else{
			warpClient.disconnect();
			handleError();
		}
	}

 

closed with the note: warpClient.joinRoomInRange(1, 1, false);
asked Jan 8, 2020 in Android by pmaccreation (10 points)
closed Jan 9, 2020 by pmaccreation

1 Answer

0 votes
Hi,

Greetings!!

Could you please share the below detail with us, it will help us to provide better support to you from our end.

1. SDK name and Version on which you are working on.

2. Error log which you are getting while calling this method.

 

Regards,

Priyanka Singh

App42 Team
answered Jan 9, 2020 by anonymous
Good day, Thank you but I managed to resolve it by changing the warpClient.joinRoomInRange(1, 1, false) into warpClient.joinRoom("roomid"). of the onConnectDone() method of WarpController.java

Regards,
pmacCreations
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
...