I have a xamarin forms app I'm trying to implement some changes to support dark mode. I'd like to check theme and support dark mode whenever the app OnResume's in App.xaml.cs
The problem is, when I press the home button in the simulator, then, say, go to settings and change the Dark Appearance, and re-navigate to my app using the task switcher or tapping the icon, I don't ever get into OnResume with the debugger (on Android, I do).
I do however see this output in my Output window when I pause my app.
2019-12-24 20:00:21.836561+0000 Ifpa.iOS[25715:8579903] Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
Does anyone know why OnResume in iOS is not working for me with Xamarin Forms 4.4.0?