Welcome to the official Frontegg Android SDK — your all-in-one solution for integrating authentication and user management into your Android mobile app. Frontegg is a self-served user management platform, built for modern SaaS applications. Easily implement authentication, SSO, RBAC, multi-tenancy, and more — all from a single SDK.
This repository includes:
- A Get Started guide for quick integration
- A Setup Guide with detailed setup instructions
- An API Reference for detailed SDK functionality
- Usage Examples with common implementation patterns
- Advanced Topics for complex integration scenarios
- Migration Gide for check migration instructions
- A Hosted, Embedded, Application-Id, and Multi-Region example projects to help you get started quickly
The SDK can load and check user entitlements (features and permissions) from the Frontegg Entitlements API. Enable entitlements by adding FRONTEGG_ENTITLEMENTS_ENABLED to your app’s BuildConfig (e.g. buildConfigField "boolean", 'FRONTEGG_ENTITLEMENTS_ENABLED', "true" in build.gradle), then:
- Entitlements are fetched automatically on login. You can also call
fronteggAuth.loadEntitlements(forceRefresh, completion): by default (forceRefresh = false) the SDK uses cached entitlements when available (no network call). PassforceRefresh = trueto always fetch from the API (GET .../frontegg/entitlements/api/v2/user-entitlements). - Use the cached state for local checks:
getFeatureEntitlements(featureKey),getPermissionEntitlements(permissionKey),getEntitlements(options)withEntitledToOptions.FeatureKey(key)orEntitledToOptions.PermissionKey(key). - All checks after load use in-memory state only. Cache is cleared on logout. Access raw state via
fronteggAuth.entitlements.state(EntitlementState:featureKeys,permissionKeys).
For full documentation, visit the Frontegg Developer Portal:
🔗 https://developers.frontegg.com
Don't have a Frontegg account yet?
Sign up here → https://portal.us.frontegg.com/signup
Need help? Our team is here for you:
https://support.frontegg.com/frontegg/directories
