Question

I used small-bet-nextpeer SDK for real money challenge in game. It shows multiple tournament, how to avoid multiple and add name to one ?

Here is my Small-Bet initialisation code:

    [Nextpeer setSmallBetSandboxKey:SMALL_BET_SANDBOX_KEY andProductionKey:SMALL_BET_PRODUCTION_KEY];

    [Nextpeer initializeWithProductKey:NEXT_PEER_GAME_KEY
                          andDelegates:[NPDelegatesContainer containerWithNextpeerDelegate:self notificationDelegate:self tournamentDelegate:self]];

Here is Screenshot: enter image description here

Was it helpful?

Solution

Got solution.

To avoid multiple tournament, need to check in code:

-(BOOL)nextpeerSupportsTournamentWithId:(NSString* )tournamentUuid
{
    if([tournamentUuid isEqualToString:@"NPA23903563215268043"])
        return YES;
    else
        return NO;
}

We can edit tournament title in nextpeer website, not in small-bet.

OTHER TIPS

I wrote the SBNPSDK framework.

You have two options:

  1. Delete the spare tournaments from the nextpeer website.

  2. Implement -(BOOL)nextpeerSupportsTournamentWithId:(NSString* )tournamentUuid as Guru suggests. This method is only for filtering nextpeer tournaments from the main interface, it will never ask about small-bet tournaments which all have a tournamentUuid starting with SB.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top