void ConnectToJiver() { if (UserMgr.Schedule != null) { Debug.Log("Connecting"); ClearList(); Debug.Log("Cleared"); string appId = "1C0C2894-E73D-4711-B9A0-A55C2C4DEBF6"; // string userId = SystemInfo.deviceUniqueIdentifier; string userName = UserMgr.UserInfo.memberName; string userId = userName; // string channelUrl = DEFAULT_CHANNEL; Jiver.Init(appId); Debug.Log("Init"); Jiver.Login(userId, userName); Debug.Log("Login"); string channelUrl1 = DEFAULT_CHANNEL + UserMgr.Schedule.extend [0].teamCode + UserMgr.Schedule.extend [1].teamCode; string channelUrl2 = DEFAULT_CHANNEL + UserMgr.Schedule.extend [1].teamCode + UserMgr.Schedule.extend [0].teamCode; Debug.Log(channelUrl1 + "," + channelUrl2); Jiver.Join(channelUrl1, channelUrl2); Debug.Log("Join"); Jiver.QueryChannelList(false); Debug.Log("List"); } }
void Start() { string appId = "A7A2672C-AD11-11E4-8DAA-0A18B21C2D82"; string userId = SystemInfo.deviceUniqueIdentifier; string userName = "******" + userId.Substring(0, 5); string channelUrl = "jia_test.Unity3d"; Jiver.Init(appId); Jiver.Login(userId, userName); Jiver.Join(channelUrl); Jiver.Connect(); }
void Start() { // API Token: 95a9676a5e8d1dd421aad0a4e3d6c203752362e4 string appId = "1C0C2894-E73D-4711-B9A0-A55C2C4DEBF6"; string userId = SystemInfo.deviceUniqueIdentifier; string userName = "******" + userId.Substring(0, 5); string channelUrl = "Liveballchat.KTHH"; Jiver.Init(appId); Jiver.Login(userId, userName); Jiver.Join(channelUrl); Jiver.Connect(); }