Get push settings from the the push server.
public void QueryPushSample()
{
{
{
Debug.Log("QueryPush succeeded.");
var message = new StringBuilder();
message.AppendLine(string.Format("pushEnabled:{0}", pushAdvertisements.pushEnabled));
message.AppendLine(string.Format("adAgreement:{0}", pushAdvertisements.adAgreement));
message.AppendLine(string.Format("adAgreementNight:{0}", pushAdvertisements.adAgreementNight));
message.AppendLine(string.Format("displayLanguageCode:{0}", pushAdvertisements.displayLanguageCode));
Debug.Log(message);
}
else
{
Debug.Log(string.Format("QueryPush failed. error is {0}", error));
}
});
}
static void QueryPush(GamebaseCallback.GamebaseDelegate< GamebaseResponse.Push.PushConfiguration > callback)
Get push settings from the the push server.
Definition Gamebase.cs:2653
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