setContactKey

Sets the contact key for the device's user.

MCCordovaPlugin.setContactKey(contactKey, [successCallback], [errorCallback])

Static method of MCCordovaPlugin.

ParameterTypeDescription
contactKeystringThe value to be set as the contact key of the device's user.
successCallbackfunction
successCallback.savedbooleanWhether the value passed in for contactKey was saved in the registration.
errorCallbackfunction