FriendsResolutionRequiredException

  • FriendsResolutionRequiredException occurs when attempting to access a player's friend list without the necessary permissions.

  • To resolve this exception and gain consent, developers should utilize the getResolution() method to obtain a PendingIntent.

  • This PendingIntent can then be used to display a UI prompting the player to grant permission for accessing their friend list.

public final class FriendsResolutionRequiredException extends ResolvableApiException

Exception thrown when trying to access the list of friends. If consent was not provided, then the API call will fail with FriendsResolutionRequiredException().

To obtain consent from a player, call getResolution to retrieve the PendingIntent which can be used to show a UI asking the player to give permission to the game to access the friends list.

Inherited Field Summary

Inherited Method Summary