Get SDK Version
🧾 REL-ID SDK API Documentation: getSdkVersion
📘 Overview
The getSdkVersion API returns the current version of the REL-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 6 months ago
