License and Setup topic
License and Setup
The plugin bootstrap has two distinct phases:
- product license authentication and installation
- biometric API credential configuration
PT-BR
O bootstrap tem duas fases separadas: licença do produto e configuração das credenciais da API biométrica.
Language guide
English is the primary language of this page.
PT-BR: os resumos com este rótulo ajudam quem integra o pacote em português do Brasil.
License Phase
Use FlutterSmartfaceLicensePlatform for:
Biometric API Credentials
Use FlutterSmartfaceMobilePlatform.setCredentials to configure:
userpasswordclientIdentifier
Then use FlutterSmartfaceMobilePlatform.apiConfigured during application startup to restore the session and saved group keys.
Recommended Sequence
final license = FlutterSmartfaceLicensePlatform.instance;
final mobile = FlutterSmartfaceMobilePlatform.instance;
await license.setLogin('license-user', 'license-password');
await license.install(id: 'product-id');
await mobile.setCredentials(
user: 'api-user',
password: 'api-password',
clientIdentifier: 123,
);
final ready = await mobile.apiConfigured();
Notes For Integrators
licenseLoggedIn()andlicenseInstalled()are useful for guarding startup and retry logic.setCredentials()persists values securely for later reuse byapiConfigured().- Group keys can also be restored automatically after credentials are reapplied.
PT-BR
Para integradores: use
licenseLoggedIn()elicenseInstalled()para proteger o bootstrap, e trateapiConfigured()como o ponto central de restauração de sessão.
Libraries
- flutter_smartface_license Overview License and Setup
- License, product, and installation APIs for SmartFace Flutter integrations.
- flutter_smartface_mobile Overview Integration License and Setup Biometric Flows UI and Camera
- Main SmartFace Flutter API for biometric operations.