Instance Method

setAttributes(_:)

Subscriber attributes are useful for storing additional, structured information on a user. Since attributes are writable using a public key they should not be used for managing secure or sensitive information such as subscription status, coins, etc.

Declaration

@objc func setAttributes(_ attributes: [String : String])

Parameters

attributes

Map of attributes by key. Set the value as an empty string to delete an attribute.

Discussion

Key names starting with “$” are reserved names used by RevenueCat. For a full list of key restrictions refer to our guide

See Also

Subscriber Attributes