Ondisappearing is not called from UWP and info not saved when exiting app

In my Android project, when I exit out, the PCL project OnDisappearing method is called upon, and I save information for the next time around (I have not tried IOS yet). This does not happen in the UWP project. When exiting the UWP app, it does call OnSuspending in the UWP App.xaml.cs, and then the PCL project App.Xaml.cs OnSleep, but does not touch on OnDisappearing in the PCL project. How can I execute the methods and access the variables in the PCL project that save the information for the next time around?

Best Answer

  • louwholouwho US ✭✭✭
    Accepted Answer

    Global\static variables. I have to use these for a list and counter, so that they would be available to the OnSuspending method in the USP project.

Answers

  • louwholouwho USMember ✭✭✭
    Accepted Answer

    Global\static variables. I have to use these for a list and counter, so that they would be available to the OnSuspending method in the USP project.

Sign In or Register to comment.