ios - Is there any way to call saveCurrentTurnWithMatchData without sending a push notification? -
i have game center game allows players make multiple moves per turn. in ios 6, apple implemented great feature in savecurrentturnwithmatchdata allows that- saves data game center prevent cheating repeatedly redoing move instance, without advancing next player.
the problem is, have discovered triggers same push notification taht gets sent when player does end turn. other players in game see badge on app's icon , mistakenly think it's turn when isn't.
has found workaround this? way call savecurrentturnwithmatchdata without sending push notification? if not, seems design flaw should brought apple's attention.
i agree, seems design flaw. developing turn-based game whereby player can take several actions before passing control on next player. meanwhile, want other players witness every action while looking @ game. if other players not running app, want them receive push notification when control passed player.
instead of using savecurrentturnwithmatchdata:, use endturnwithnextparticipants: specify current player rather next. seems trick:
nstimeinterval interval = 86400; // seconds in day [currentmatch endturnwithnextparticipants:[[nsarray alloc] initwithobjects:currentmatch.currentparticipant,nil] turntimeout:interval matchdata:[self packmatchdata] completionhandler:^(nserror *error) { if (error) { // handle error } } ];
Comments
Post a Comment