Device Information
Device Information
Section titled “Device Information”Get Device Identifier
Section titled “Get Device Identifier”// Returns: Future<String>// A unique identifier for the device, used for tracking and security verification// This identifier is persistent across app sessions and is generated by the SDKfinal deviceId = await AlphynSdk.getDeviceId();print('Device ID: $deviceId');// Output: Device ID: 817D56BE-0BC4-4CE4-8516-8F582EEBE0FCPurpose: Retrieves a unique, persistent identifier for the device. This ID is essential for:
- Device tracking across sessions
- Security event correlation
- Device fingerprinting
- User verification processes
Get Application Hash
Section titled “Get Application Hash”// Returns: Future<String>// A cryptographic hash of the application binary// Used to verify app integrity and detect tampering or modificationsfinal appHash = await AlphynSdk.getAppHash();print('App Hash: $appHash');// Output: App Hash: 64f3f5b47a856403dc48bfbaac0fcdb89f414f63dafb9c18e8b6d87f2a43caecPurpose: Generates and returns a cryptographic hash of your application. This hash is critical for:
- Detecting app tampering or unauthorized modifications
- Verifying application integrity
- Ensuring the app has not been repackaged or altered
- Compliance and security auditing