-
- All Implemented Interfaces:
-
java.util.concurrent.Callable,kotlin.Comparable
public final class SendRegisterTask extends SendEventTask
Registers the device's push token with the AppsFlyer backend to enable uninstall tracking.
Customers wire their FCM/push token via
AppsFlyerLib.updateServerUninstallToken(ctx, token)(orFirebaseMessagingServiceListener); on GCM's uninstall signal the backend fires a server-side postback to the customer's reporting endpoint. On success, persistssentRegisterRequestToAF = trueso the same token is not re-sent next session.Customer entry point:
AppsFlyerLib.updateServerUninstallToken(ctx, token).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSendRegisterTask.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Response<String>resultprivate final Set<TaskType>dependenciesprivate final Set<TaskType>softDependenciesprivate final Integerorderprivate LongexecutionTimeprivate ThrowableexecutionErrorprivate volatile IntegerretryCountprivate final TaskTypetype
-
Constructor Summary
Constructors Constructor Description SendRegisterTask(String uninstallToken, ServiceLocator serviceLocator)
-
Method Summary
Modifier and Type Method Description Response<String>getResult()final Set<TaskType>getDependencies()final Set<TaskType>getSoftDependencies()final IntegergetOrder()Chronological order in which the task object was created. final LonggetExecutionTime()final UnitsetExecutionTime(Long executionTime)final ThrowablegetExecutionError()Error which happened during task execution, or nullif the task was successful.final UnitsetExecutionError(Throwable executionError)final IntegergetRetryCount()Number of times the task was executed, INCLUDING the initial try. final UnitsetRetryCount(Integer retryCount)final TaskTypegetType()BooleanshouldCacheRequest()Cache every request to survive process death between enqueue and send. -
Methods inherited from class com.appsflyer.internal.components.queue.tasks.SendRegisterTask
getLaunchCounter -
Methods inherited from class com.appsflyer.internal.components.queue.tasks.HttpTask
addDependency, addSoftDependency, call, compareTo, equals, executionResult, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SendRegisterTask
SendRegisterTask(String uninstallToken, ServiceLocator serviceLocator)
-
-
Method Detail
-
getDependencies
final Set<TaskType> getDependencies()
-
getSoftDependencies
final Set<TaskType> getSoftDependencies()
-
getOrder
final Integer getOrder()
Chronological order in which the task object was created. Required to support natural ordering in the Queue SkipListSet: two tasks of the same type and priority — the first one has the smaller order.
-
getExecutionTime
final Long getExecutionTime()
-
setExecutionTime
final Unit setExecutionTime(Long executionTime)
-
getExecutionError
final Throwable getExecutionError()
Error which happened during task execution, or
nullif the task was successful.
-
setExecutionError
final Unit setExecutionError(Throwable executionError)
-
getRetryCount
final Integer getRetryCount()
Number of times the task was executed, INCLUDING the initial try. E.g. if the task succeeded on the first try this returns 1.
-
setRetryCount
final Unit setRetryCount(Integer retryCount)
-
shouldCacheRequest
Boolean shouldCacheRequest()
Cache every request to survive process death between enqueue and send. Subclasses with session-bound payloads MUST override to
false.
-
-
-
-