Re: Forcing app updates to mobile users
I figure out a way to force app updates for every user when needed:
– I have a SharepointList with one record (ID=1), in which I control the current version of my app in a text column called: IdApp.
– With appOnStart I declare a global variable _userVersion as:
Set(_userVersion;LookUp(SharepointList;ID=1;IdApp));;
– When I make updates in Powerapps and have the need to be in production immediately, I update the Sharepointlist record with a new value. ie: 0.951.
Here I do not have the need to call all app users to close, wait 2 mins, and restart the app to reflect changes made, because:
– On critical navigation links or specific components of the app, I lookup for current value in the list and compare this value with _userVersion as follows:
If(
LookUp(SharepointList;ID=1;IdApp)<>_userVersion;
Exit();
Navigate(cmpHeader.HomeScreenNav)
)
– For sure on App object, in the ConfirmExitMessage property, I configure a custom message like:
“Version 0.951 is now available! Please close the app and enjoy its new features”.
This message is displayed automatically by Powerapps when the Exit() function is triggered.
As user cannot go anywhere in the App because navigations are performing the “if” sentences, then user is forced to close the app.