Open jiak94 opened 5 months ago
return GameAuth.isSignedIn.then((isSignedIn) {
logger.fine('User is signed in: $isSignedIn');
if (isSignedIn) {
return Leaderboards.loadLeaderboardScores(
iOSLeaderboardID: iosLeaderboardID,
scope: PlayerScope.global,
timeScope: TimeScope.allTime,
maxResults: 10);
} else {
logger.fine('User is not signed in. Signing in...');
return GameAuth.signIn().then((value) {
logger.fine('Sign in result: $value');
return Leaderboards.loadLeaderboardScores(
iOSLeaderboardID: iosLeaderboardID,
scope: PlayerScope.global,
timeScope: TimeScope.allTime,
maxResults: 10);
});
}
});
That's odd, We are calling GameKit isAuthenticated method.
currentPlayer.isAuthenticated
I tried also now and I'm getting the value of currentPlayer.isAuthenticated as true from the native side.
reproduction steps:
GameAuth.signIn()
GameAuth.isSignedIn
-> the return value istrue