邀请朋友使用Google Play服务 [英] Invite Friend in Google Play Services

查看:97
本文介绍了邀请朋友使用Google Play服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Objective-C创建游戏应用,该应用正在使用Google Play游戏服务提供实时多人游戏功能.我会按照 https://developers.google.com/games/services/ios上的文档进行操作/turnbasedMultiplayer .在我的应用中,有两个选项:自动匹配"和邀请匹配".自动匹配功能正常运行.但是邀请比赛不行.为此,我遵循以下代码

I'm creating a Game App in objective-c which is using Google Play Game services for realtime Multiplayer functionality. I follows the documentation at https://developers.google.com/games/services/ios/turnbasedMultiplayer. In my app there are two options Auto match and Invite Match. Auto Match functionality working fine. But Invite match not. I follow following Code for this

- (int)minPlayersForPlayerPickerLauncher {
    return 1;
}

- (int)maxPlayersForPlayerPickerLauncher {
    return 2;
}
- (IBAction)inviteFriendsWasPressed:(id)sender
{

    // This can be a 2-4 player game
    [GPGLauncherController sharedInstance].playerPickerLauncherDelegate = self;
    // This assumes your class has been declared a GPGPlayerPickerLauncherDelegate
    [[GPGLauncherController sharedInstance] presentPlayerPicker];
}

点击此按钮后,操作跟随屏幕打开在此处查看

on click this button Action follow Screen is open See here

之后,当我在文本字段中输入emailId时,没有执行搜索特定用户的操作.

After that when I enter emailId in textfield there is no action perform to search particular user.

请帮助我
谢谢

推荐答案

不幸的是,由于Google+不再集成到Play游戏服务中,因此无法进行玩家选择:

Unfortunately, the player selection no longer works since Google+ is no longer integrated into Play Game Services: https://android-developers.googleblog.com/2016/12/games-authentication-adopting-google.html

这篇关于邀请朋友使用Google Play服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆