Prerequisites:
- SDK dependencies added to your project (Installation Guide)
- Workspace ID and API Key from your Permutive dashboard
- Your project enabled for Android by Permutive
- Basic Initialization
- With Identity
- With AAID Provider
The Permutive object should be created only once as a singleton. Initialize in your Application class:
Important Considerations
Singleton Pattern
Singleton Pattern
Good:Bad:
Performance
Performance
- Initialization is fast - No significant impact on app startup
- No main thread blocking - Network calls happen asynchronously
- Start tracking immediately - No need to wait for initialization to complete
Push Notifications
Push Notifications
This prevents unnecessary SDK initialization from background processes.
Consent Management
Consent Management
As a data controller, you may need to receive consent from the user before tracking data against them. The Permutive SDK assumes that at the time it is initialized, this consent has already been granted.
Coming Soon: GDPR Compliance documentation is being developed. Contact your Customer Success Manager for immediate assistance.
Troubleshooting
Error fetching configuration
Error fetching configuration
Symptoms:Solutions:
- Verify credentials are correct UUIDs
- Ensure using
workspaceId(not deprecatedprojectId) - Contact your Customer Success Manager to verify Android is enabled
- Check device network connectivity
App crashes on initialization
App crashes on initialization
Causes:
- Invalid UUID format
- Context is null
- ProGuard/R8 stripping required classes
- Verify UUID format:
"550e8400-e29b-41d4-a716-446655440000" - Use Application context (not Activity)
- Check ProGuard rules are applied
Next Steps
Track Your First Page View
Start tracking user interactions
Verify Your Integration
Confirm everything is working
Identity Management
Track users across sessions
Issues
Solutions to common issues
API Reference
For complete API documentation, see the Javadocs. Key Classes:Permutive- Main SDK classPermutive.Builder- Builder for JavaAlias- User identity aliasAliasProvider- Automatic alias provider interface