25
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?

Rank: #1346

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