Get SDK Version
š§¾ Ditto ID SDK API Documentation: getSdkVersion
š Overview
The getSdkVersion API returns the current version of the Ditto ID SDK integrated into the mobile application. This is essential for debugging, support, and ensuring version compatibility.
šÆ Purpose
Use this API to:
- Identify the specific SDK version in use.
- Validate environment setup across dev/test/prod environments.
- Include in support logs or bug reports for faster issue resolution.
š API Flow
- Initialize the SDK.
- Call
getSdkVersion(). - Use the returned string in logs or diagnostic output.
š§¾ Response
Returns the SDK version as a String value.
š§ Example Response:
25.04.01
š» Code Snippets
React Native
RdnaClient.getSdkVersion((response) => {
const version = response.response;
});Flutter
final version = await rdnaClient.getSdkVersion();Cordova
com.uniken.rdnaplugin.RdnaClient.getSdkVersion(successCallback, errorCallback);Native iOS
NSString* sdkVersion = [rdnaClient getSdkVersion];Native Android
String sdkVersion = rdnaClient.getSdkVersion();ā ļø Error Codes
| Code | Error | Action |
|---|---|---|
| 0 | Success | Use the returned value |
| 4 | RDNA_ERR_INVALID_ARGS | Likely due to improper init |
| 88 | RDNA_ERR_RDNA_ALREADY_INITIALIZED | Typically ignorable |
š§ Developer Notes
- Version should be recorded during crash reports or SDK failure debugging.
- It is recommended to expose this value in developer settings/debug builds.
Updated 4 months ago
