Skip to content

Commit

Permalink
Comment out app shutdown on Android, because it needs more thought
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Jan 7, 2025
1 parent 5d89bb9 commit 525d9ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/FwLite/FwLiteMaui/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ public static MauiApp CreateMauiApp()
{
#if ANDROID
events.AddAndroid(android => android
.OnDestroy((activity) => holder.Shutdown()));
.OnDestroy((activity) =>
{
// This doesn't work, because OnDestroy gets called e.g. when logging in via OAuth. (and maybe whenever the app is backgrounded?)
// It seems like there is no appropriate hook. Maybe we're just supposed to let the OS kill the app?
//holder.Shutdown();
}));
#endif
#if IOS || MACCATALYST
events.AddiOS(ios => ios
Expand Down

0 comments on commit 525d9ce

Please sign in to comment.