Your project identifier selects the AppGram project. Customer identity associates activity with a person. A management API key authorizes server operations. Keep those responsibilities separate when configuring an integration.
Public client configuration
Use a public project ID in React, React Native, Flutter, and Swift. The embed accepts a public project ID or an organization/project key. Organization and project slugs help route public pages and releases; they do not act as passwords.
Keep management keys on your backend. Do not place them in provider props, frontend environment variables, mobile bundles, HTML attributes, or customer identity fields. The authentication guide explains server requests.
Anonymous identification
The React, React Native, and Flutter providers enable fingerprinting by default for anonymous identification. Set enableFingerprinting: false in their configuration to avoid initializing it:
<AppgramProvider config={{
projectId: 'YOUR_PROJECT_ID',
enableFingerprinting: false,
}}>
<YourApp />
</AppgramProvider>
The Flutter setting uses the same name in AppgramConfig. This option controls the SDK’s fingerprint initialization; it does not remove identity your application explicitly supplies in a request. Decide which identification behavior your product needs before initializing the SDK.
Signed-in customers
The platforms expose different APIs. Do not assume every SDK has an identify or setUser method.
| Platform | Customer context |
|---|---|
| Swift | AppGramSDK.shared.setUser(...); call clearUser() on sign-out |
| JavaScript embed | Initial user settings or the documented setUser method; reset the widget lifecycle on account changes |
| React and React Native | Use the documented identity fields for the particular submission, vote, or support workflow |
| Flutter | Use the documented input models for the particular workflow |
Only send the customer fields needed by that workflow. Customer context is not proof of management access. Support conversations can require their own ticket token or verification step; a display name or email field does not replace that credential.
Sign-out and account changes
Clear Swift customer context when the account signs out. For embeds, do not assume setUser({}) clears all previous fields; remove the old widget and initialize a fresh customer session, or reload the owning page. Remove account-specific data from your own state and cached screens too.
If two projects share an application, supply the correct project configuration for the active surface. Avoid keeping a previous account’s private support content on screen after changing users.
Continue with the platform setup guides or troubleshooting.