How can I set or find the Application Version of an MDK Client?
I am trying to restrict access to only certain compatible MDK Clients compatible with the metadata data deployed. There is a setting in Security to restrict client by Application Version. But I could not find how this can be set for an MDK Client.
For an Android Build of MDK Client, I tried to set this in app.gradle as suggested in Application Versioning documentation for Android. This succeeded in onboarding the client, but failed later when synching with an error from Mobilink. So that is not the correct approach.
I suppose there is a correct way to do this with MDK.
Request clarification before answering.
When using the Application Versioning in Mobile Services to restrict connections you need to specify the version to match the AppVersion from the MDKProject.json of your client. When you add this restriction any clients not matching the versions will get an error when trying to onboard.
Alternately you can add logic into your MDK metadata to check the client version using clientAPI.getVersionInfo() and check the "Application Version" and determine how you want to proceed in those scenarios as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.