-
- All Implemented Interfaces:
-
io.customer.sdk.device.DeviceTokenProvider
public final class FCMTokenProviderImpl implements DeviceTokenProviderWrapper around FCM SDK to make the code base more testable. There is no concept of checked-exceptions in Kotlin so we need to handle the exception manually.
-
-
Constructor Summary
Constructors Constructor Description FCMTokenProviderImpl(Logger logger, Context context)
-
Method Summary
Modifier and Type Method Description BooleanisValidForThisDevice(Context context)UnitgetCurrentToken(Function1<String, Unit> onComplete)-
-
Constructor Detail
-
FCMTokenProviderImpl
FCMTokenProviderImpl(Logger logger, Context context)
-
-
Method Detail
-
isValidForThisDevice
Boolean isValidForThisDevice(Context context)
-
getCurrentToken
Unit getCurrentToken(Function1<String, Unit> onComplete)
-
-
-
-