0
votes

I need to compare the current app version with the latest app version deployed on worklight server from both android and ios app.

Did some research and found the link below but the mentioned api only returns current app version.

Can we get the app version and IP address info using worklight api?

Is there any way the mobile client can retrieve the latest app version?

I'm using Worklight version 5.0.6

Thanks in advance.

1
What is the use case for the client to know that?Idan Adar
To implement and replace the disable old version feature base on the user requirement.deadcode
I don't understand... with the Remote Disable feature as it is now you can block any environment and version you'd like, as long as it is deployed to the Worklight Server. For the feature to work, you do not need to know what is the latest version, simply go to the console and disable the version app that is installed on the the device is running. You can customize this remote disable dialog and/or its behavior, see the documentation.Idan Adar
I go through this link ibm.com/developerworks/community/blogs/worklight/entry/…, does that support by 5061?deadcode
It would be best to use 5.0.6.2, there it is supported for sure.Idan Adar

1 Answers

1
votes

As written in the comments:

The way you're trying to do this is not the right one IMO.

with the Remote Disable feature as it is now you can block any environment and a specific version of it that you'd like, as long as it is deployed to the Worklight Server.

For the feature to work, you do not need to know what is the latest version; simply go to the console and disable the app version that is installed on the the device. You can customize this remote disable dialog and/or its behavior, see this blog post: How to Create a Customized Remote Disable Behavior.

The written in the blog post is supported in the latest Worklight versions: 5.0.6.2, 6.0.0.2 and 6.1.0.1.