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 clientId field of MagifyConfig:
await MagifyClient.instance.init(
const MagifyConfig(
applicationName: 'MyApplication',
defaultConfig: 'assets/magify_default_config.json',
isSandbox: false,
clientId: 'your_trusted_user_id',
),
);
If no clientId is provided, the SDK generates one automatically and keeps it stable across launches. The value is set once, at init time — there is no setter to change it afterwards. See Configuration options for the full reference to client identity members.