我们有自己的rocket.chat服务器,并且已经通过iframe嵌入到我们的应用程序中,但是我需要在登录期间从我们的rocket.chat服务器获取user_id,并将其保存在移动应用程序的数据库中。
所以我去了rocket.chat的文档:https://rocket.chat/docs/developer-guides/iframe-integration/authentication/,但不知道如何将其整合到ionic 3应用程序中。有人可以帮我吗?
window.parent.postMessage({ 事件:“使用令牌登录”, loginToken:“您的令牌” },'http://your.rocket.chat.url');