cancel
Showing results for 
Search instead for 
Did you mean: 

How to set Application Version for MDK Client?

08-06-2025 10:04 AM
Dinu Active Contributor
1572 views 7 comments
0 Likes
SAP Managed Tags
Subscribe

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.

Security / Application Version

 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.

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

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.  

Dinu
Active Contributor
0 Likes
Hmm. That (using AppVersion) did not work for me. Let me try again with more care.
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes
Souble check your version on the Android Device under Settings > App > [your client name] and verify it maches what you expect to see
Dinu
Active Contributor
0 Likes

I can onboard, I get MOBILINK_COMMUNICATION_ERROR on initialization.

Dinu_0-1754639084465.png

I have a test setup where, metadata packaged with the app is an almost empty project. So DB initialization is triggered after the update. Onboarding and download of update succeeds, but DB initialization fails. 

Dinu
Active Contributor
0 Likes
I tried onboarding Mobile Services Client (v 25.6.2). With the same result: MOBILINK_COMMUNICATIONS_ERROR. So the error is not because of my special setup. Is this configuration supported by MDK?
Liev
Explorer
0 Likes

Dear Dinu

I am in the same situation now. I was able to install the client but failed to sync.

Been you able to resolve the issue?

Thank you

Dinu
Active Contributor
No. I could not get this to work with offline odata. Requests to mobilink are not sent with the header required. If this is sent explicitly, it does work. So, my conclusion at the time was that it is not supported.