Push
class Push
This class provides wrapping of function execution related to push notification.
Functions
Link copied to clipboard
Get notification options in device.
Link copied to clipboard
open fun queryNotificationAllowed(@NonNull context: Context, @NonNull callback: GamebaseDataCallback<Boolean>)
This API tells that the user has allowed the device to display notification.
Link copied to clipboard
open fun queryPush(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<PushConfiguration>)
Get push settings from the the push server.
Link copied to clipboard
open fun queryTokenInfo(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<GamebasePushTokenInfo>)
Get push settings from the the push server.
Link copied to clipboard
open fun registerPush(@NonNull activity: Activity, @NonNull pushConfiguration: PushConfiguration, @NonNull callback: GamebaseCallback)
open fun registerPush(@NonNull activity: Activity, @NonNull pushConfiguration: PushConfiguration, @NonNull notificationOptions: GamebaseNotificationOptions, @NonNull callback: GamebaseCallback)
Register push information to the push server.