How do I get notifications for GameKit Turn-Based matches?

前端 未结 4 687
小蘑菇
小蘑菇 2020-12-31 11:29

I\'m working on a turn based iOS game using the new turn-based iOS5 API.

One of the delegate protocols you need to implement for this is GKTurnBasedEventHandlerDele

4条回答
  •  死守一世寂寞
    2020-12-31 11:54

    As the documentation says, that message is received when the player has accepted the push notification (typically by unlocking the phone or via notification center). Sending push notifications is decided in Game Center client-side, and automatically done for you by GameKit. You don't need to implement a GKTurnBasedEventHandlerDelegate in order for them to work, only to respond to the player accepting them (by automatically returning to that match or whatever).

    I guess it's worth double checking in your device's Notification settings to see that your app has Notification Center alerts enabled.

提交回复
热议问题