Marketing Cloud SDK / com.salesforce.marketingcloud.messages.push / PushMessageManager / setPushToken

setPushToken

abstract fun setPushToken(@NonNull pushToken: String): Unit

Only call this method if you are handling the request, and refresh of, the push token from Google. Set the push token to be used by the Marketing Cloud to send push messages to the device. The push token is a required value to send a registration payload to the Marketing Cloud so if you fail to set this value you will not see updates to the registration.

Parameters

pushToken - String: The token value to provided by Google.

See Also
com.salesforce.marketingcloud.MarketingCloudConfig.Builder#setSenderId(String)