Register push information to the push server.
public void RegisterPush(
bool pushEnabled,
bool adAgreement,
bool adAgreementNight)
{
GamebaseRequest.Push.PushConfiguration pushConfiguration = new GamebaseRequest.Push.PushConfiguration();
pushConfiguration.pushEnabled = pushEnabled;
pushConfiguration.adAgreement = adAgreement;
pushConfiguration.adAgreementNight = adAgreementNight;
Gamebase.Push.RegisterPush(pushConfiguration, (error) =>
{
if (Gamebase.IsSuccess(error))
{
Debug.Log("RegisterPush succeeded");
}
else
{
Debug.Log(string.Format("RegisterPush failed. error is {0}", error));
}
});
}