Is there a way to lock out Mobile users who have NOT upgraded their app to the latest version?

0
Hi, We are working on a Native Mobile app, which will be released soon. After release, we will undoubtedly release new versions of the Native Mobile app to the user.   Therefore, we are looking for a way to lock out users who have NOT yet upgraded the app to the latest version. We think that it is the best to do this before synchronization (after logging in).   We tried using something like the Java action 'GetRuntimeVersion' and then comparing it to a Constant value. However, this didn't work because the Constant value gets automatically synchronized with the cloud as well... In case the Constant value would have been locked statically inside of the Mobile Package, this would have been different.   Any ideas?   Thanks in advance!
asked
2 answers
1

You can try to compare the app version number via GetDeviceInfo (NativeMobileResources) and compare with a constant that is updated on the Environment.

 

This should be done just after launching the app, before sync.

 

If is different, you could redirect to a page with the message "please update to the latest version"

 

see also:

https://www.npmjs.com/package/react-native-device-info#getversion

https://reactnative.dev/docs/platform#version

 

answered
-1

Use the Mendix API to retrieve the current version of the model of your environment. See documentation here: https://docs.mendix.com/apidocs-mxsdk/apidocs/deploy-api/#list-environments

This way you can retrieve the current version of your model and compare it to the mobile version.

Regards,

Ronald

 

answered