addLoginStateChangedListener 在android 下正常,ios 下没有反应
this.jmessage.addLoginStateChangedListener((event: any) => {
console.log('登录状态发生改变 .... ');
console.log(JSON.stringify(event));
if ('user_logout' === event.type) {
this.logout(); // 踢出操作
}
});
代码如上,场景就是 新登录用户 ,踢出 上一个登录的用户
目前android 端 正常
ios 没有反应
版本:
“jmessage-phonegap-plugin”: “^3.6.3”,