Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ GetNotificationOptions()

static GamebaseResponse.Push.NotificationOptions GetNotificationOptions ( )
static

Get notification options in device.

Since
Added 2.15.0.

Example Usage :

public void GetNotificationOptionsSample()
{
GamebaseResponse.Push.NotificationOptions notificationOptions = Gamebase.Push.GetNotificationOptions();
GamebaseRequest.Push.NotificationOptions options = new GamebaseRequest.Push.NotificationOptions(notificationOptions);
options.foregroundEnabled = true;
options.smallIconName = "notification_icon_name";
GamebaseRequest.Push.PushConfiguration configuration = new GamebaseRequest.Push.PushConfiguration();
Gamebase.Push.RegisterPush(configuration, options, (error)=> { });
}
static GamebaseResponse.Push.NotificationOptions GetNotificationOptions()
Get notification options in device.
Definition Gamebase.cs:2776
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
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11
Here is the call graph for this function:
Here is the caller graph for this function: