provideDeviceToken
Provides the FCM token to register this device for push notifications. No action occurs if the same token is provided multiple times.
Return
The Result of performing this operation.
Parameters
context
Interface to global information about an application environment.
token
The device token to register.
abstract suspend fun provideDeviceToken(context: Context, token: String, developerName: String = DEFAULT): Result<String>
Deprecated
developerName is no longer needed for registering notifications.
Replace with
import com.salesforce.android.smi.core.internal.InternalCoreClient.Companion.provideDeviceToken
Content copied to clipboard
provideDeviceToken(context, token)
Content copied to clipboard