Returns the version of the native Prism SDK linked into the app.
iOS reads TealiumConstants.libraryVersion at runtime. Android returns BuildConfig.TEALIUM_LIBRARY_VERSION of the SDK version that the wrapper was compiled against.
TealiumConstants.libraryVersion
BuildConfig.TEALIUM_LIBRARY_VERSION
A Promise that resolves with the version string. It rejects with ErrorCode.NATIVE_MODULE_NOT_REGISTERED if the native module is missing.
const version = await getSdkVersion(); Copy
const version = await getSdkVersion();
Returns the version of the native Prism SDK linked into the app.
iOS reads
TealiumConstants.libraryVersionat runtime. Android returnsBuildConfig.TEALIUM_LIBRARY_VERSIONof the SDK version that the wrapper was compiled against.