Your own integration
If you integrate the Magify SDK with your own solution and already have a reliable way to identify the user, you can pass that identifier to the SDK as a custom clientId. Magify then uses it to consistently identify the same user across launches.
Usage
Provide the identifier through the userId field of MagifyConfig:
val config = MagifyConfig(
applicationName = "android-application",
defaultConfig = "Magify-Config.json",
isSandbox = false,
userId = "your_trusted_user_id"
)
magify = Magify.createInstance(androidApp, config)
If no userId is provided, the SDK generates and stores one automatically. You cannot overwrite a live or sandbox clientId in place — to switch users, reset and re-initialize the SDK. See Changing clientId for the full flow.