loginForLastLoggedInProvider

Logs the user in with last logged in authentication provider.

Example Usage:

Gamebase.loginForLastLoggedInProvider(activity, new GamebaseDataCallback<AuthToken>() {
    @Override
    public void onCallback(AuthToken data, GamebaseException exception) {
        if (Gamebase.isSuccess(exception)) {
            Log.d(TAG, "Login successful");
        } else {
            Log.e(TAG, "Login failed");
        }
    }
});

Since

Added 1.4.0.

Parameters

activity

The activity which is starting the mapping process.

callback

Login result callback, returns the authentication token as a result of login.

See also


Logs the user in with last logged in authentication provider.

Example Usage:

Map<String, Object> additionalInfo = new HashMap<>();
additionalInfo.put(AuthProviderCredentialConstants.SHOW_LOADING_ANIMATION, false);
Gamebase.loginForLastLoggedInProvider(activity, new GamebaseDataCallback<AuthToken>() {
    @Override
    public void onCallback(AuthToken data, GamebaseException exception) {
        if (Gamebase.isSuccess(exception)) {
            Log.d(TAG, "Login successful");
        } else {
            Log.e(TAG, "Login failed");
        }
    }
});

Since

Added 2.53.0.

Parameters

activity

The activity which is starting the mapping process.

additionalInfo

The additionalInfo which is additional information using for login.

callback

Login result callback, returns the authentication token as a result of login.

See also