C++ 谷歌游戏服务';s邀请对话框不';我不给任何朋友看

C++ 谷歌游戏服务';s邀请对话框不';我不给任何朋友看,c++,ios,google-play-games,C++,Ios,Google Play Games,我正在尝试让GPG C++的邀请系统在iOS游戏中正常工作。 我试图调用RealtimeMultiplayerManager::ShowPlayerSelectUI()打开一个对话框来选择要邀请的朋友。但是,该对话框不显示任何好友,仅显示“自动拾取”选项。我在同一个圈子里有几个Google测试帐户,他们已经在Google Play控制台中被列为测试人员。该游戏仍在开发中。 有人知道怎么回事吗 谢谢 代码如下: m_gameServices->RealTimeMultiplayer().Sh

我正在尝试让GPG C++的邀请系统在iOS游戏中正常工作。 我试图调用RealtimeMultiplayerManager::ShowPlayerSelectUI()打开一个对话框来选择要邀请的朋友。但是,该对话框不显示任何好友,仅显示“自动拾取”选项。我在同一个圈子里有几个Google测试帐户,他们已经在Google Play控制台中被列为测试人员。该游戏仍在开发中。 有人知道怎么回事吗

谢谢

代码如下:

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上。为什么会有这样的延迟?

如果配置错误,请尝试检查您的
RealTimeMultiplayerManager::ShowPlayerSelectUI
方法。下面是一个示例片段

void Engine::InviteFriend() {
  service_->RealTimeMultiplayer().ShowPlayerSelectUI(
      MIN_PLAYERS, MAX_PLAYERS, true,
      [this](gpg::RealTimeMultiplayerManager::PlayerSelectUIResponse const &
                 response) {
        LOGI("inviting friends %d", response.status);
            // Your code to handle the users's selection goes here.
      });
}

您也可以查看此文档以检查您的配置。

我尝试运行的ButtonClicker示例也一样,没有朋友显示。然而,快速匹配适用于ButtonClicker和我的游戏,游戏服务可以随机选择人来连接彼此。游戏服务似乎也有一些SendReliableMessage错误。它总是返回ERR_NOT_AUTHORIZED,即使我没有授权,我也无法创建任何快速匹配。您能否在
RealtimeMultiplayerManager::ShowPlayerSelectUI()
method?“邀请朋友1”中提供日志和代码,但只有在我选择“自动拾取”并启动游戏时才会触发回调。