Instance Method

issueChallengeToPlayers:message:

Issue an achievement challenge to a list of players.

Declaration

- (void)issueChallengeToPlayers:(NSArray<NSString *> *)playerIDs message:(NSString *)message;

Parameters

playerIDs

An array of NSString objects containing the player identifiers of the players being challenged.

message

A text message to display to the challenged players.

Discussion

This method should be used only to implement your own custom challenge user interface. You should only issue challenges when the local player directs you to do so.

If the achievement is marked as hidden in App Store Connect, or if the challenged player has already earned the achievement and it is not marked as replayable, then the challenge is not issued.

See Also

Deprecated Methods and Properties

- challengeComposeControllerWithPlayers:message:completionHandler:

Provides a challenge compose view controller with pre-selected player identifiers and a message.

Deprecated
hidden

A Boolean value that states whether this achievement is normally kept secret from the player.

Deprecated
- initWithIdentifier:forPlayer:

Initializes an achievement for a specific player.

Deprecated
playerID

A string used to identify the player who earned the achievement.

Deprecated
- reportAchievementWithCompletionHandler:

Reports the player’s progress to Game Center.

Deprecated
- selectChallengeablePlayerIDs:withCompletionHandler:

Finds the subset of players that can earn an achievement.

Deprecated