App Top number Logic

Source: Internet
Author: User

Logged-on interface requires key information to be logged on the Login.do interface: USERID, device model ( Android | iPhone ), logon time, login IP, device unique identifier ( UUID )

When the same account is signed in on another new device, the relevant login device information corresponding to the UserID is overwritten directly, if the old device is re-connected, because the UUID is not the UUID of the current server, it will return directly 下线通知 , and the main information ( 设备型号 , 时间)

Login.do and chat-web.do do not communicate directly before, to avoid the consumption of each other calls and the system, im-web with a userid key for storage, when reconnecting Im-web found with the current cache device unique identity () is not consistent with the UUID prompt 下线通知, if it is consistent, you can reconnect it and return the domain name and port of the IM instance that is available to connect to.

The above thinking is based on the mobile phone QQ and the test results, the reverse derivation, may be wrong.

App Top number Logic

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.