mojira.dev
MCPE-109879

Getting disconnected from server when minimizing game or switching focus to another app

I don't know if that's intentionally, but since the 1.16.200 update, if you minimize your game while playing on a server, and you open it again, you get disconnected automatically from the server. I have a video here as proof: https://mega.nz/file/nMMVSKiQ#JRwi0svc-I-zE_GWph_Os7rq82nG-vWR12hc7RseOmg

Related issues

BDS-11687 Disconnects Upon Alt+Tab MCPE-110054 Server Instantly Disconnects When You Minimise Minecraft MCPE-110472 Alt-Tab to another window and back makes you leave the game MCPE-110660 Leave bug MCPE-110711 Auto-disconnection from servers MCPE-111707 Pressing the application button in multiplayer server would exit you out from it. MCPE-112184 When I play server / realms I turn off my phone, I automatically exit the server / realms MCPE-112997 Minecraft exits server when app in backround MCPE-113284 Focus lost bug MCPE-113920 Closing the app quits you from servers MCPE-114034 Servers disconnecting MCPE-116577 Disconnecting in multiplayer MCPE-117611 multiplayer bug MCPE-117671 Losing focus on game gets you kicked MCPE-118440 Leaves friend Minecraft world after alt-tab or go to a different app MCPE-118819 When I minimize Minecraft Bedrock they get off the servers MCPE-119785 you cannot join server after minimize it MCPE-119798 Auto disconnection on servers and Multiplayer worlds when you click on Home button on your phone MCPE-120003 Kick at minimize MCPE-120162 Automatic exit server MCPE-120466 auto going back to capabilitie from server when minimised MCPE-120474 In the background, the game does not work on the server MCPE-122836 Background exits the server MCPE-124049 When in multiplayer world, pressing the home button on the phone or minimising the game makes you leave the world MCPE-124158 After leaving a realm by opening a new tab and rejoining it without restarting Minecraft i cant join the realm without restarting minecraft again and it comes up with a error message MCPE-124279 Kicked off server MCPE-124288 When we minimize the minecraft window and connect to a minecraft server, Minecraft will restart and quit the server automatically MCPE-125463 Switching windows disconnects you from realms and makes it unable to rejoin MCPE-125663 Unable to connect to server once tabbed out during playing on the server MCPE-126833 AFK Server Issue while at the Outer Apps MCPE-127353 If you unfocus the game, when you refocus it if you're connected to a server you get kicked and can't rejoin. MCPE-127467 Minecraft closes MCPE-128042 Alt+Tab logs you out of minecraft realm MCPE-129007 Fullscreen Alt+Tab Disconnection MCPE-129245 server and multiplayer bugs MCPE-130134 Getting kicked off a multiplayer game or getting other players kicked off your world when suspending minecraft with another app MCPE-130586 Minecraft exits the world when screen lock MCPE-130983 Minecraft kicking me out of the world or server MCPE-131061 Game disconnect inmediately from multiplayer in background and lock screen MCPE-132196 Getting kicked out of multiplayer worlds/servers when switching to other apps MCPE-132535 Game MCPE-132969 When running minecraft, the game must be reloaded every time the window is switched MCPE-133168 Log out automatically MCPE-134272 Game leaves server after minimizing MCPE-134481 My Minecraft is coming out of Servers and Realms as soon as it is in the background or the device screen turns off MCPE-139063 Custom Skin Changing/Switching Apps Glitch MCPE-139093 Disconnected from server when going to other apps in android MCPE-145069 When I do minecraft server, I press the '-' sign on the top right and when I open it again, I got kicked out automatically... MCPE-147796 If you minimize Minecraft, reopening quickly disconnects you from multiplayer! MCPE-148274 Lost connection when returning to the phone's interface MCPE-151971 Disconnect when minimize MCPE-151972 Disconnect from server when it is not the active window MCPE-152034 Exiting Minecraft bedrock Edition to the main interface MCPE-154937 Minecraft disconnects from server after tabbing out MCPE-155086 Minecraft does not support servers when player logs out MCPE-155846 Loading Screen MCPE-157893 If the game loses focus, it disconnects from a server MCPE-158326 Disconnect from server&realm when alt+tab MCPE-159702 Tabbing into another window while fullscreen is enabled leaves the current online session MCPE-159741 Alt-tabbing from Minecraft Bedrock on fullscreen to another window disconnects from the world or server you're connected on MCPE-159796 The Loading Screen kicks you out of the Servers (Mobile devices) MCPE-161175 Removes from the servers MCPE-163834 Minecraft reloads every time you minimize the window MCPE-164195 Disconnected on automatic servers MCPE-164910 Alt-Tab Shuts down Multiplayer Games MCPE-166527 game leaves my realm when I focus on slack MCPE-166618 Closing minecraft then reopening while on a server causes you to leave the server MCPE-169337 Everytime You Open An App And Leave Minecraft Open and view The App That You Opened, Minecraft Forces You To Leave The Server MCPE-169981 The game kicks me out of multiplayer games, servers and realms if running in the background MCPE-173618 Unable to connect to any external servers after Minecraft has been minimized MCPE-183643 Whenever I go to another window to look something up, my Minecraft Windows 10/11 Edition crashes out of my friends world. MCPE-186226 Kicked out of server on alt-tab MCPE-187182 When you Switch the game window to the background on Multiplayer Game, you has exit on You playing Multiplayer Game MCPE-189676 Leaving multiplayer when on a different application while playing on full screen MCPE-190592 Tabbing out of Minecraft/ minimising it on windows kicks you out of a multiplayer game/server if you’re currently playing in it. REALMS-7994 Annoying Realms bug REALMS-9742 Logs out If you open a program while Bedrock is in full screen mode. REALMS-10063 Alt-Tabing in the Windows 10 Bedrock Edition client while in fullscreen causes me to dc from my friend's realms server. [Issue Remains] REALMS-12131 Getting kicked when tabbing out MCPE-191162 Full screen Windows Bedrock Client is disconnected from Server on loss of focus MCPE-216902 In fullscreen mode the game is disconnected from the server when the game is minimized MCPE-217118 Minecraft goes back to loading screen when minimizing the game on Android MCPE-217128 Kicked from Realm after switching to a different app on Mobile (Android) MCPE-221290 Realm disconnection when switching between desktops Win10

Attachments

Comments

migrated
[media][media]
[Mod] OcelotOnesie

Thank you for your report!
We're actually already tracking this issue at MCPE-19393, so I will resolve and link this ticket as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Luke Hiwalker4

Thank you for your response, but that's another issue. In MCPE-19393, there appears the "disconnected from server" screen, which occurs when minimizing the windows for a longer period of time (f.E. 15 seconds). In my issue, after I minimize the game, I instantly get send to the "Generating World / loading resources", without the disconnection screen, and get to the server view again, even though I minimize the game for a much shorter period of time [in fact, one second]. I tried this in earlier versions (1.16.40, 1.16.100) on the same device and with doing the exact same thing, and this issue didn't occur on those versions.

[Mod] OcelotOnesie

Reopened the ticket.

migrated

Is this bug blocking that bug?

Luke Hiwalker4

I did some research on it, and it doesn't seem it only happens on servers, but also on mutliplayer worlds. Minimizing the game as host won't close your world, but any other player on that world will get disconnected and won't be able to rejoin until the host restarts minecraft

migrated

As far as i know it was 2 mins time that you have when you minimize the game on android and then it shuts down the server but now its instant which is not a bug i think! Will this issue be fixed in the next update? if not then its time to look for minecraft alternatives! i think mojang is doing this intentionally and  wants us to buy the realms, if this is true then..... alternative time it is!

migrated

This problem also exists for me and is very annoying. When my hand accidentally hits the window sign, everything is over

migrated

Windows 10 paid edition here.  If I alt-tab away, when I come back I see the loading bar for maybe two seconds I've been booted from game.  In almost any game this would be unacceptable but its doubly so in a Windows 10 app.

migrated

I get this issue as well. Windows 10 Bedrock Edition free edition 1.16.210 and game ups and crashes as soon as I put my computer to sleep or as soon as my computer goes to sleep.

migrated

I can't play with my friends now. This problem is on Android too. When I switch an app I get instantly disconnected. How am I supposed to play the game now please fix this. I think this is the most important bug.

Minecraft version: 1.16.220.02

 

GoldenHelmet

On Windows 10, if you change to windowed mode by turning off the Fullscreen toggle in video settings, then you can alt-tab without losing connection to a multiplayer game.

migrated

regardless of playing the game on windowed mode , the bug still occurs when you alt tab. I disconnected from my world/server when i just tried to change my music on Spotify. Please fix this. We should be able to alt tab when it is fullscreen as well.

(Playing on Windows 10)

migrated

@Pantelis, welp, try using the in-game chat or open discord right BEFORE you join the game, it's an android app behavior to save all possible crucial data in ram.

migrated

This started happening to me today. Any time I would minimize to another app I would get disconnected from the realm (That I OWN). I get the error "Disconnected due to server being unavailable". Earlier in the day I could close MC, reopen it and log back into the realm fine. Now I am just stuck on the "Joining Realm Building Terrain" screen forever and unable to join my own realm. Others can join the realm. My daughter who plays on the realm and shares the same connection as me can join the realm with no issue. This is happening while playin on Win10. I thought I would try to log in on my Xbox to see if there was a difference and the same problem occurs trying to log in there as well. I am able to play all personal worlds no issue. I am able to join other servers with no issue. The problem is only related to the realm that I own.

metaed

Issue still present in 1.17.0.02.

Also, on Android, the workaround has changed slightly. It is no longer necessary for me to exit and relaunch the app. I am still disconnected instantly from the Realm, but I am not prevented from joining a Realm after that. I can connect without exiting and relaunching.

migrated

On Xbox one, game version 1.17.2, anytime that I switch to an app (which is supposed to be allowable on this console - one game, and one app) then switch back, the game reloads itself, disconnecting from any servers or terminating the local game - this also corrupts the savegame data. 

migrated

This only happens when the game is in fullscreen

migrated

Attached two video to prove that it doesn't matter whether you play the game on fullscreen or not in order to encounter this bug.

GoldenHelmet

Tayfur: in your videos, you aren't simply switching focus to another app, you are also clicking the "show desktop" button. That's equivalent to minimizing the app window, and that does disconnect you whether you are in full screen or windowed mode. Minecraft will run in a Window behind other apps, but it won't run minimized. So the workaround is to run (or switch to) windowed mode and don't minimize the window.

migrated

It's really annoying on lower end pcs where the connecting to worlds/servers takes time, and an accidental missclick could cause a time loss

Arisa Bot

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

metaed

Please add bug also present in 1.17.32.02 hotfix for Android.

metaed

Confirmed bug still present in 1.17.41.01 (hotfix for Android).

Mineliver

This used to not happen and it doesn't happen on Java edition. When you accidentally minimize Minecraft bedrock (or minimize it on purpose) no matter how quickly you open Minecraft bedrock back up, it reloads Minecraft and disconnects you from any multiplayer world or server you where on. This gets really annoying for me. Please don't make Minecraft bedrock disconnect from multiplayer so easily.

Arisa Bot

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

migrated

It's the same on Xbox. In series x, you can have two games going. It doesn't work with Minecraft. 

migrated

Hey, simple answer. Minecraft Runs on Windows and Xbox as a Universal Windows Platform Application (UWP) App.
And that's behind the suspension application after  minimize.
So the application stops working and the server disconnects the player, not the Minecraft client from the server.
This disconnection is not due to an error in the Minecraft code.
And let's not expect this error to be resolved.

migrated

But that was not the case at 1.16, so they have done something. so then they should be able to solve it with.

metaed

Confirmed still present in 1.18.12.01 hotfix for Android

migrated

Still an issue in 1.18.20.25 Android

migrated

I have discovered that if you turn off full screen and only have one window maximized in Windows, this problem does not occur. A fix until the basic problem is solved, at least to Windows 

metaed

Confirmed still present in 1.18.30.04 update for Android.

metaed

Confirmed still present in 1.18.31.04 for Android.

metaed

confirmed still present in 1.18.32.02 for Android

metaed

Confirmed bug still present in 1.19.0.05 for Android.

migrated

I believe the following Microsoft UWP Develop articles relate to and address this issue, if this information could please be relayed to the developers:

Postpone app suspension with extended execution

Run in the background indefinitely

Graylen_MYT25

I think the issue may be related to the game freezing when not on screen (So the game probably doesn't know what to do and instantly disconnects/automatically kicks everyone online).

The issue has occurred when my phone shuts off (both intentionally and timed out) and when changing apps/hitting the home/show open apps. On my laptop it has occurred when minimized. I haven't had my laptop's screen turn off or time out yet, but I would assume that it would occur during that.

The bug with the game freezing, is that occasionally (normally every other time) the game would not process anything when it is not visibly on screen. This can completely break automatic farms and afking overnight in some cases. I don't think it has a bug report yet but I thought I would include that for context/in case it is needed.

metaed

Confirmed still present in version 1.19.41.01 for Android.


Reply from @unknown: It is not very helpful to continue adding comments like this to bug reports, and it generally just adds clutter and makes it harder to find the important comments. If an issue is not mentioned in a changelog, it is unlikely to have been fixed, so there is no need to comment about it.
However, if you want to ensure that the Affected Version does get updated, you can submit requests for that on the Mojira Discord.

migrated

True for 1.20.81 on PC full screen and Android, and for 1.21 preview

X1Crafts

If the current Reporter could pin @Valiante's links to a solution so someone at Mojang could see it, that would be great!

migrated

The articles, @Valiante has linked won't really solve the root issue and here is why:

These APIs were introduced in Build 10240. So this issue could have been fixed very early on but it wasn't due to the reasons mentioned above.

The only way to prevent app suspension is put the package into debug mode using [IPackageDebugSettings::EnableDebugging|https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-ipackagedebugsettings-enabledebugging].

As for what this method does:

  • Optionally enables debugger attach on activation.

  • Disables activation timeouts.

  • Disables automatic process suspension.

  • Disables automatic process termination.

  • Disables automatic process resumption.

This solves our issue but only problem is that it needs a Desktop app.

If the fix needs to be integrated then following can be done:

  1. Create a desktop app that calls IPackageDebugSettings::EnableDebugging on the invoking package.

  2. Launch this desktop app using FullTrustProcessLauncher, unlike ExtendedExecutionForegroundSession, apps using this API can be submitted onto the Microsoft Store.

  3. This effectively fixes the issue as a whole.

Only issue is now if an app doing something like this will be accepted onto the Microsoft Store. Apps need to certified before being submitted.
If not possible then migrating from UWP to Win32 would be an alternative solution and this has been done with Minecraft: Education Edition.

Unsender

confirmed still present in 1.21.31 & 1.21.40.25 for Android.

migrated

Just tested, confirmed not fixed in 1.21.50.24 preview.

SkyLoader

Still not fixed in 1.21.73.

Eduardo Rivera

Still not fixed in 1.21.82

Luke Hiwalker4

(Unassigned)

445587

Confirmed

Multiple

1.20.20.22 Preview, 1.20.10.23 Preview, 1.20.10.21 Preview, 1.20.0.25 Preview, 1.19.80.22 Preview, ..., 1.21.50, 1.21.60.25 Preview, 1.21.60.24 Preview, 1.21.51 Hotfix, 1.21.71 Hotfix

Retrieved