플랫폼에 전화 :
안드로이드
내용 :
문제 설명 :
로그인 권한을 얻은 후 대화방에 메시지를 보내라는 요청을 보내면 응답이없고 인터페이스도 호출되지 않으며 콜백도되지 않습니다.
코드 :
Date date = new Date();
KakaoTalkMessageBuilder builder = new KakaoTalkMessageBuilder();
builder.addParam(“user_name”, “coco”);
builder.addParam(“room_id”, “123456”);
KakaoTalkService.getInstance().requestSendMemo(new TalkResponseCallback<Boolean>() {
@Override
public void onSessionClosed(ErrorResult errorResult) {
UIMessage.show("requestSendMemo -> onSessionClosed: " + errorResult.getErrorCode());
UnityPlayer.UnitySendMessage("GameManager", "loginOk", "requestSendMemo -> onSessionClosed: " + errorResult.getErrorCode());
}
@Override
public void onNotSignedUp() {
UIMessage.show("requestSendMemo -> onNotSignedUp");
UnityPlayer.UnitySendMessage("GameManager", "loginOk", "requestSendMemo -> onNotSignedUp");
}
@Override
public void onNotKakaoTalkUser() {
UIMessage.show("requestSendMemo -> onNotKakaoTalkUser");
UnityPlayer.UnitySendMessage("GameManager", "loginOk", "requestSendMemo -> onNotKakaoTalkUser");
}
@Override
public void onSuccess(Boolean result) {
UIMessage.show("requestSendMemo -> onSuccess:" + result);
UnityPlayer.UnitySendMessage("GameManager", "loginOk", "requestSendMemo -> onSuccess:" + result);
}
}
, "15560" // templateId
, builder.build());