Its possible to fire an event before the app closes? For exemple in my App i want so send a request to my api when the App closes to change the user state to offline.
Thanks!
CodePudding user response:
In xamarin you have one override method in App.xaml.cs called onsleep you can put your code there but it will trigger when your app goes in background also.
