Mobile - How to detect a new app version

How to detect a new app version

Hi Mahesh,

I have mentioned two plugins in this post that you can use to check the app version info.

Hope this helps.

Regards,

Nordin

Thanks Nordin but one quick question. Do we have any predefined function in outsystems itself?

Hi Mahesh,

No I don't think there is a built-in function for that. The plugins I shared with you are based on existing Cordova plugins that are capable of detecting app version info.

https://github.com/Rareloop/cordova-plugin-app-version

Regards,

Nordin


Hi Mahesh,

Despite the answers above, you can also refer to the below approach. I adopt the same as well.

1-Use the App version Forge Component on Mobile, This plugin will return you the version installed on the device.

https://www.outsystems.com/forge/component-overview/2913/app-version-plugin 


2- Create a server action that will return you the latest version of the respective app build for the respective platform.

   You will pass the OS whether Android/Ios from Mobile to the Server Action  
Refer the entity System > App_Mobile_Config to fetch the VersionNumber of the respective Application.

3- In the OnApplicationReady of Mobile call the Server action & compare with the Resultyou get from the Plugin.

Hope it helps,

- Assif