UpdateInfo
If the Initialize API fails with error LAUNCHING_UNREGISTERED_CLIENT (2004), this VO class tells you why.
Example Usage:
void initializationSample() {
Gamebase.initialize(activity, configuration, new GamebaseDataCallback<LaunchingInfo>() {
@Override
public void onCallback(final LaunchingInfo data, GamebaseException exception) {
if (Gamebase.isSuccess(exception)) {
// Gamebase initialization succeeded.
} else {
// Gamebase initialization failed.
UpdateInfo updateInfo = UpdateInfo.from(exception);
if (updateInfo != null) {
// Unregistered game client version.
// Open market url to update application.
updateInfo.installUrl; // Market URL.
updateInfo.message; // Message from launching server.
return;
}
// Another initialization error.
}
}
});
}
Content copied to clipboard
Since
Added 2.7.2