Register push information to the push server.
public void RegisterPushSample(bool pushEnabled, bool adAgreement, bool adAgreementNight)
{
var configuration = new GamebaseRequest.Push.PushConfiguration
{
pushEnabled = pushEnabled,
adAgreement = adAgreement,
adAgreementNight = adAgreementNight,
displayLanguageCode = GamebaseDisplayLanguageCode.Korean
};
var notificationOptions = new GamebaseRequest.Push.NotificationOptions
{
foregroundEnabled = true,
priority = GamebaseNotificationPriority.HIGH
};
{
{
Debug.Log("RegisterPush succeeded.");
}
else
{
Debug.Log(string.Format("RegisterPush failed. error is {0}", error));
}
});
}
static void RegisterPush(GamebaseRequest.Push.PushConfiguration pushConfiguration, GamebaseCallback.ErrorDelegate callback)
With user's agreement to enablePush, enableAdPush, and enableAdNightPush, call following API to compl...
Definition Gamebase.cs:2616
The Push class provides registering push token API to ToastCloud Push Server and querying push token ...
Definition Gamebase.cs:2581
static bool IsSuccess(GamebaseError error)
Return true if the GamebaseException object is null or the error code is zero.
Definition Gamebase.cs:57
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11