protected override void OnSleep() { if (ContextHelper.IsElectronNET()) { return; } WebApplicationFactory.StopWebServer(); }
protected override void OnSleep() { if (ContextHelper.IsElectronNET()) { return; } switch (Device.RuntimePlatform) { case Device.Android: //There is a bug on Android in release mode that seem to prevent to stop or release port OnSleep //Avoiding to Stop the server OnSleep as the event seem to not be fully propagated break; default: WebApplicationFactory.StopWebServer(); break; } }
protected override void OnSleep() { // Handle when your app sleeps WebApplicationFactory.StopWebServer(); }
protected override void OnSleep() { WebApplicationFactory.StopWebServer(); }