2020 API AWARDS WINNER - BEST IN MEDIA APIs LEARN MORE

INotificationTokenProvider

The INotificationTokenProvider model provides the firebase push notification token (currently the only one supported by Voxeet). The token can be invalid. It is also responsible for informing if it is allowed to upload the token, and it logs strings related to notifications.

Available in the package com.voxeet.sdk.core.services.notification.INotificationTokenProvider.

Available in the package com.voxeet.sdk.services.notification.INotificationTokenProvider.

Methods

getToken

getToken(): String

The Firebase token obtained through the SDK Firebase.

Returns: @Nullable String - its value or a null value if the implementation does not communicate it.

isTokenUploadAllowed

isTokenUploadAllowed(): boolean

Informs that the SDK uploads the token to Voxeet.

Returns: boolean - the permission flag.

log

log(@NonNull log: String): void

Logs strings related to notifications.

Parameters

NameTypeDescription
logStringnon null string for logging in to the logcat bridge