Authentication
How Nosmai Effects license keys work, online validation, and what data the SDK sends.
License keys
The SDK authenticates with a license key from the Nosmai portal. Each app uses its own key. Pass it to the initialize call at startup:
// Flutter
await NosmaiFlutter.initialize('YOUR_LICENSE_KEY');
// iOS
[[NosmaiSDK shared] initWithLicenseKey:@"YOUR_LICENSE_KEY"];
// Android
NosmaiSDK.initialize(context, "YOUR_LICENSE_KEY");
How validation works
- The key is validated online the first time it is used, so the first launch needs connectivity.
- After that, the SDK works offline for the app’s core effects.
- Keep your license key private and do not share it publicly. Each application requires its own key.
What the SDK sends
The SDK does not collect or upload personal user data, and camera frames are never transmitted. For license validation and monthly active user (MAU) counting, it sends only non-personal device information, such as:
- the application ID using the SDK,
- the device screen resolution,
- the device OS version,
- a randomly generated seed,
- the date the SDK features were accessed.
Cloud filters are the only other network use, and they are downloaded only when you request them.
NOTE
Validation runs during initialize. Handle the initialize result and do not apply effects until it succeeds.