Gamebase SDK for Unity  1.0.0
Toast Gamebase Platform

◆ QueryPush()

static void QueryPush ( GamebaseCallback.GamebaseDelegate< GamebaseResponse.Push.PushConfiguration >  callback)
static

Query push token to ToastCloud Push Server.

Parameters
callbackCallback. delegate(GamebaseResponse.Push.PushConfiguration data, GamebaseError error)

This sample shows how to call the Push.QueryPush method.

public void QueryPush()
{
Gamebase.Push.QueryPush((pushAdvertisements, gamebaseError) =>
{
if (gamebaseError == null)
{
Debug.Log("QueryPush succeeded");
Debug.Log("pushEnabled : " + pushAdvertisements.pushEnabled);
Debug.Log("adAgreement : " + pushAdvertisements.adAgreement);
Debug.Log("adAgreementNight : " + pushAdvertisements.adAgreementNight);
}
else
{
Debug.Log("QueryPush failed");
}
});
}