88
Views
3
Comments
After OnApplicationResume is updated
Question

Suppose I update and publish changes for OnApplicationResume. 

When a user first opens their app after my publish, does the previous version of the code get executed or does the new version get executed? Does this vary between Android and iOS?

UserImage.jpg
Quentin P

Mahesh Manchala wrote:

Hi,

Please refer the below documentation for this system event:

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Platform_Utilities/System_Events/Mobile/On_Application_Resume

https://cordova.apache.org/docs/en/latest/cordova/events/events.html


Hi there, 

Do the Outsystems Resume and Ready events map exactly to the Cordova equivalents?

Regarding my earlier question, I ask since there is an update of the published Javascript code upon the launch of the application, does this happen before Application Resume or after? As if it is updated after the OnApplicationResume itself is executed, that would mean the code being executed would be the older version right?

2019-10-24 08-26-27
Babu Basha

Hello Quentin P, 

The app gets updated only when the first request to the server is made whereas the OnApplicationResume event is something which is run locally on the client when the end user resume the app. I would presume OnApplicationResume to run first, however I haven't tested it and with asynchronous nature the results could vary too.

You can use the version plugin to get the current installed version on the device and If you don't want the older version of code to run, you could add a version check by calling a server action to check your self managed config to see if the local app version and server version are the same. 

Thanks,

Babu

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.