on 2022 Jun 30 4:55 PM
Is there a way to use getVersionInfo() to determine MDK client version at runtime in metadata?
Thanks,
Michael
Request clarification before answering.
Yes, getVersionInfo() is the call to get the MDK Client version. This call returns an array of key value pairs and one of them is the MDK client version. See the Help Doc for more details on the keys
Depending on the platform you will look for a different key:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd like to add that, at least for me in version 6.3.4, in web, you currently have to add a ": " at the end of the keys.
For iOS, using ''SAPMDC" as the key works.
For Web, using "WebClient Version" doesn't work. By using JSON.stringify, I found out the actual key is "WebClient Version: ". (notice the extra colon and space)
In the same call getVersionInfo(), what does "Definitions Version" represent? Is it the "Application Properties" definition inside the MDK project? I am looking to display the deployment revision number in my app, and don't know if this is it. In my app, "Definitions Version" always shows a value of "1".
versionInfo['Application Version'] is the AppVersion from MDKProject.json
versionInfo['Definitions Version'] is the Version from Application.app in the metadata
User | Count |
---|---|
63 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.