使用mesibojavascriptapi的消息未送达,仅显示已发送状态



使用以下功能发送消息

function sendTextMessage(to, message) {
var profile = api.getProfile(to, 0);
var id = parseInt(Math.random()*10000);
profile.sendMessage(id, message);
}

之后,当我使用记录listner响应时

MesiboListener.prototype.Mesibo_OnMessageStatus = function(m) {
console.log("Mesibo_OnMessageStatus: from "  
+ m.peer + " status: " + m.status);
}

它显示Mesibo_Message状态:从4688250状态:1,但不将状态更改为2(已交付(

我们在mesibo门票上对您进行了回答,并对您的代码进行了轻微更正(如果您尚未收到,请检查SPAM(。

您正在将UID作为目的地。你应该把地址作为目的地。尝试下面的代码

var demo1_user_token = '81...'; 
var demo1_destination = 'vivek';
var demo_appid = 'com.f...';
var demo2_user_token = 'c9...';
var demo2_destination = 'maulik';

最新更新