邀请到多人游戏时,发送通知(游戏服务) [英] Send notification when inviting to multiplayer game (Game Services)

查看:196
本文介绍了邀请到多人游戏时,发送通知(游戏服务)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在玩弄谷歌Play游戏服务和多人的支持。如果我邀请玩家使用此服务,是否有可能将通知自动发送到接收器?当我使用演示项目这样的事发生。然而,文档说:

I’m playing around with Google Play Game Services and multiplayer support. If I invite a player with this service, is it possible to send a notification to the receiver automatically? When I use the demo project nothing like this occurs. The documentation however says:

如果签署的播放器接收来自Android状态栏上的通知区域中的邀请,您的应用程序应该接受邀请,并直接进入游戏画面(跳过主菜单)。

If the signed-in player accepts an invitation from the notification area on the Android status bar, your app should accept the invitation and go directly to the game screen (skipping the main menu).

此不明确的说,通知的支持,但它给了我一些希望至少:-)。根据这个问题:<一href=\"http://stackoverflow.com/questions/16879068/google-play-game-services-invitations-get-lost\">Google玩游戏服务邀请迷路通知似乎得到支持,但我从来没有收到任何。

This doesn’t explicit says that notifications are supported, but it gives my some hope at least :-). According to this question: Google play game services invitations get lost notifications seems to be supported, but I have never received any.

推荐答案

好吧,我终于解决了很多感谢@smiller。

Ok, I finally solved much thanks to @smiller.

所有我有我的测试帐户盘旋,就像继第一。这是不够的!一些其他圆(朋友,家风等)已被使用。如果对方仅仅是在下面的圆圈,onRoomCreated被称为与邀请者的应用现状code 6(STATUS_NETWORK_ERROR_OPERATION_FAILED)。

First of all I had my test account circled just as Following. This is not enough! Some other circle (Friend, Familiy etc) has to be used. If the person is just in the following circle, onRoomCreated is called with status code 6 (STATUS_NETWORK_ERROR_OPERATION_FAILED) on the inviter's application.

我有一个次要的问题是,数据同步在我的设备上关闭。显然这已被打开。不幸的是邀请人从来没有得到这方面的一些反馈,它只是等待,直到永远。

A secondary problem I had was that data synchronizing was turned off on my device. Obviously this has to be turn on. Unfortunately the inviter never get some feedback on this, it just waits forever.

这篇关于邀请到多人游戏时,发送通知(游戏服务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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