Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Intendent behavior of the Pause and Unpause app with Unity Games on the Android platform

Discussion in 'Android' started by SirMiguel, Apr 18, 2024.

  1. SirMiguel

    SirMiguel

    Joined:
    May 8, 2018
    Posts:
    3
    Hello, I'm currently working on the Android game and our QA pointed out that if we pause the game and then unpause it using the Android feature game will restart and my question is if that's the intended behavior or if there is that bug in our game or Unity.

    I have tested it with Hearthstone and Gwent and both of those games are restarting as well but I want to be sure if that is something normal. Our game is about 800 MB .
     
    Last edited: Apr 18, 2024
  2. PizzaPie

    PizzaPie

    Joined:
    Oct 11, 2015
    Posts:
    111
    In case, by pause/ unpause you mean unfocus/ focus of the game.
    Then most common reason is high ram usage. Android will terminate apps that are not focused whenever needs to free memory.

    Easiest way to partially verify this, is run the game on a flagship device with loads of ram and a dud, also check memory usage of the game if is high or not, size of the game doesnt say anything.

    Personally would consider this as a critical issue as common reasons for app to lose focus are ads showing, google play manual login etc, which makes the app unusable if terminated on lose focus.
     
  3. SirMiguel

    SirMiguel

    Joined:
    May 8, 2018
    Posts:
    3
    At least on my pixel 6 when you start app and click on icon on task manager you can pause application, it is different from changing focused app