getNotificationOptions

Get notification options in device.

Example Usage:

GamebaseNotificationOptions currentOptions = Gamebase.Push.getNotificationOptions(activity);
GamebaseNotificationOptions options = GamebaseNotificationOptions.newBuilder(currentOptions)
        .enableForeground(true)
        .setPriority(NotificationCompat.PRIORITY_HIGH)
        .setSmallIconName("notification_icon_name")
        .build();
Gamebase.Push.registerPush(activity, configuration, options, callback);

Since

Added 2.15.0.

Return

The option settings of device notification.

Parameters

context

Application context. The activity is OK, too.

See also