cancel
Showing results for 
Search instead for 
Did you mean: 

MDK- Client Login ( language and update confirm )

robert_hunger
Participant
0 Kudos

Hello MDK- Team,

I have a few questions about logging prozess for MDK Client. After the logging process always the popup with question "update confirm" appears even there are no changes. Can this be suppressed and appears only after code changes? (If the user logged on to client and the login token is valid this works fine).

The second question concerns the language when registering and connecting with SAP- backend. The client language in branding.json is set to 'de'. ("DefaultAppLanguage" : "de") in the app lagguage is set to 'de' but english texts are still displayed during the login process. This usually changes to 'de' language after the first login but not every time some times still 'en'. The problem the wrong language transmitted in the http header for cummnication with the SAP backend. How can I set the right language already at the registration process. I didn't really understand how it works ? (Client 5.1 ) Thank you, Robert

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you are using either the App/Play store client or your own client without default metadata you will see this popup after onboarding if the Mobile Services application you are connected to has metadata deployed to App Update. If you choose not to apply the update, the client will automatically check when you re-launch the client, return from the background and at intervals while the application is running.

This message is controlled by the OnWillUpdate event in your application. As the developer you can create your own message prompt as well as apply any logic you want in this event (including either automatically applying without any prompt or suppressing prompting and use of any metadata in the Mobile Services App Update).

Regarding your second question, I believe the default language is for the backend connection. The onboarding screens should be displaying based on the device language / region settings. You should also make sure you service connection has the language url parameter defined to send the language to the backend for the data to be returned in the correct language.

"LanguageURLParam": "sap-language",

Assuming you created your application pages to use language strings from the i18n files then assuming the appropriate translations exist your UI should render based on the device setting or specific language selection make within your application.

robert_hunger
Participant
0 Kudos

Thank you for your detailed explanation.

However, OnWillUpdate is running even if there was no new update, which unsettles many users. Often at login process the client update stopped, the App is empty and the user can do nothing more only close and restart again.

+ Robert

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

If OnWillUpdate is prompting that means the user chose not to apply the update now or the update failed to successfully apply and complete the OnDidUpdate action chain successfully.

What version of the MDK client are you using and on which platform (iOS or Android)?

robert_hunger
Participant
0 Kudos

Hi Bill,

Client 5.1 is more stabil at logon process. But get always the popup 'update confirm' after new Login even there was not update last 3weeks and app is up to date. (customized client 5.1 with ns plugins). So we did like your suggestion and update without prompt.

thx. Robert

sopizaken
Participant
0 Kudos

Hi bill.froelich,

I have setup the service connection "LanguageURLParam": "sap-language" but the data returned to the application is not the language i have set on my device. Is there any configuration i needed to do so that i can get the right results? Thank you!

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

sopizaken Please open a new question as this question is already answered

Answers (0)