【发布时间】:2015-05-31 23:00:14
【问题描述】:
我正在关注 TBMP Skeleton 应用程序来创建我自己的TurnBased Multiplayer 游戏。
我尝试使用这些方法来处理通知,但它们从未被调用:
@Override
public void onInvitationReceived(Invitation invitation) {
Toast.makeText(
this,
"An invitation has arrived from "
+ invitation.getInviter().getDisplayName(), TOAST_DELAY)
.show();
}
@Override
public void onTurnBasedMatchReceived(TurnBasedMatch match) {
Toast.makeText(this, "A match was updated.", TOAST_DELAY).show();
}
有人知道为什么当玩家点击游戏通知时不调用这些方法吗?
另外,如果这些方法从未被调用,Google API 如何处理我收到的通知?
我的通知消息改为:Player1 invites you to a match of Skeleton Tbmp 和 It's your turn in a match of Tbmp Skeleton with Player1
【问题讨论】:
标签: android google-play-games multiplayer