Isn't the OnHidden executed when the screen is no longer visible therefore App,ActiveScreen would show the current screen.
You can try using the OnVisible, property of the screen with the variables first initiated in the startup
Set(varPreviousScreen,varCurrentScreen);
Set(varCurrentScreen,App.ActiveScreen);
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.