【发布时间】:2016-07-04 00:38:15
【问题描述】:
我正在尝试让 GPG C++ 的邀请系统在 iOS 游戏中正常工作。 我尝试调用 RealtimeMultiplayerManager::ShowPlayerSelectUI() 打开一个对话框来选择要邀请的朋友。但是,对话框没有显示任何朋友,只有“自动选择”选项。我在同一个圈子中有几个 Google 测试帐户,它们已经在 Google Play Console 中列为测试人员。游戏仍在开发中。 有谁知道怎么回事?
谢谢,
代码如下:
m_gameServices->RealTimeMultiplayer().ShowPlayerSelectUI(1, 1, true,
[this](gpg::RealTimeMultiplayerManager::PlayerSelectUIResponse const &
response){
HQRemote::Log("inviting friends %d", response.status);
if (gpg::IsError(response.status))
{
handleError((BaseStatus::StatusCode)response.status);
}
else{
auto config = gpg::RealTimeRoomConfig::Builder()
.PopulateFromPlayerSelectUIResponse(response)
.Create();
createRoom(config);
}
});
2016 年 3 月 21 日更新: 经过 3 天的开发,朋友终于出现在对话框的 UI 上。为什么会有这样的延迟?
【问题讨论】:
标签: c++ ios google-play-games