shroom Is it possible to share the name of the app that we are discussing, so that others might try to reproduce a potential issue with it?

yore

Developer options are disabled. The issue persists, as it has been since I installed GrapheneOS

  • yore replied to this.

    shroom I do not think the app is being killed in the background, as it does not have to start back up again after it is disconnected. It is merely being disconnected from the internet any time the screen is locked or it is switched out of the foreground.

    Is a VPN in use?

      @shroom May we please know the name of the package and source, so we can attempt to simulate your issue?

      GrapheneOS

      The only feedback I have gotten here is that the issue is caused by settings that I have changed, despite me stating clearly that the issue has been ongoing since the device was freshly installed with no settings changed.

      • Edited

      de0u No, no VPN in use.

      @SgtApple The app is Old School Runescape. I installed it directly from the Google Play store. I'm not sure how you will attempt to simulate the issue without creating an account and logging in.

      The only "setting" that I have changed to attempt to remedy this issue that is still in place is that I have enabled "Exploit protection compatibility mode" for this app per suggestions I read elsewhere on these forums. Should that be disabled?

      @GrapheneOS If I "do not have my device configured correctly", then what configurations do I need to look at?

      shroom Although I rarely play any games, they have never been problematic for me, besides enabling Exploit protection compatibility mode.

      Since it only seems to affect your device, it may be a hardware problem. Might want to try on another device.

      Besides that, I'm out of ideas 🤷.

        yore Since it only seems to affect your device, it may be a hardware problem.

        Has anyone else tested it yet, then? I'll try once I find the time…

        @yore Unfortunately I do not have multiple Pixel 9 XL Pros to test with, only the one that I own.

        I am also having this (pixel 7a). If I switch away from an app it loses internet. Haven't done any fiddling with the settings, apps are allowed to run in the background

          There is only so much you can blame on the OS. Login sessions typically expire because of inactivity and you won't know whether the app detects it's been put out of focus unless you analyse the code.

          sometimes I'll just leave for a few seconds while a webpage is loading, but every time I've done this when I come back it'll have a no internet error message. If I leave the app open while it loads it loads just fine

            DEADCAT If I switch away from an app

            DEADCAT the app

            And what is the name of "the app" or the "an app(s)"? In general, if one expects other people to have a go at troubleshooting, providing as much context as possible is not only beneficial but necessary. So far this thread has been riddled with people having to guess at what is going on because of a lack of information, which is not constructive.

            ironfox, vanadium, redreader, mull, voyager, any app I've tried with

            shroom How do I prevent this? I can't play games on mobile and lock the screen for even a second or the app is totally disconnected from the internet, logs me out, and then as soon as I try to log back into the game the app completely crashes and I have to reload it.

            Have you considered the possibility that this is a problem with the particular game itself and not with the operating system? Part of the Android application lifecycle (https://developer.android.com/guide/components/activities/activity-lifecycle) is that when an activity is backgrounded, it becomes paused, stopped, or even destroyed to make memory for the new foreground activity.

            The bigger (more memory hungry) the activity is, the more it will tend towards the destroyed end of things, but no matter what, a backgrounded activity WILL be paused.

            In order to circumvent this, the application must include a service or foreground service that keeps running following the activity being backgrounded, this way when the activity is restarted, all of the states will be maintained through the service.

            Newer versions of Android tend to more aggressively cut applications off when they're backgrounded, the objective being to save battery or data, or improve performance of the foreground application.

            @DEADCAT
            Could either of these be your issue.

            having data saver or battery saver enabled

            Also as everyone keeps saying. If you have Dev Options enabled turn that off and see if that helps. It can.

              shroom I can't play games on mobile and lock the screen for even a second or the app is totally disconnected from the internet, logs me out, and then as soon as I try to log back into the game the app completely crashes and I have to reload it.

              Although it takes a bit more than a second, I could reproduce this on both GrapheneOS 2025011500 and stock PixelOS January 2025 update (AP4A.250105.002), both on a Pixel 8. Both GOS and PixelOS were factory reset and I can't think of any settings I changed that should influence this game. GrapheneOS had Sandboxed Google Play installed, and Old School Runescape was installed from Play Store. Exploit protection compatibility mode was tested, although since the behaviour is identical with PixelOS it wasn't expected to make a difference.

              The app doesn't sign me out of my account when unlocking the phone, but shows a message about the connection being lost and I need to tap on a button to resume. Occasionally when tapping the button the app closes and I have to relaunch it (although no crash dialog is shown).

              No VPN was used.

              It's worth noting that the Play Store entry for the app on both GrapheneOS and PixelOS shows this text before installing the game:

              Recent data from similar devices shows that this app may stop working on your device

              I think it's likely that the developers of the app didn't test it on a Pixel device with Android 15 QPR1. It seems to be something that the app developers need to fix.

              shroom I can't play games

              In the plural, I notice. Which leads me to the question of which other games you are experiencing issues with.