signIn method

  1. @override
Future<String?> signIn({
  1. bool shouldEnableSavedGame = false,
})
override

To sign in the user. If you pass shouldEnableSavedGame, a drive scope will be will be added to GoogleSignInOptions. This will happed just android as for iOS/macOS nothing is required to be sent when authenticate. You need to call the sign in before making any action, (like sending a score or unlocking an achievement).

Implementation

@override
Future<String?> signIn({bool shouldEnableSavedGame = false}) async {
  if (Helpers.isPlatformAndroid) {
    return await _channel.invokeMethod(
        "silentSignIn", {"shouldEnableSavedGame": shouldEnableSavedGame});
  } else {
    return await _channel.invokeMethod("signIn");
  }
}