Player Prefs Not Saving With Android When Recents Button Is Pressed

void OnApplicationPause(bool pause)
{
if (pause == true)
{
save();

    }
}

void OnApplicationFocus(bool focus)
    {
        if (focus == false)
        {
            save();
        
    }
    }

   
void OnApplicationQuit()
{
    save();
   
}
public void OnDisable()
{

    save();
   
}

I have a save function that uses the playerpref set int and set string. This works fine when I press the home button on my android phone. The variables get saved and are then loaded in my start function on next startup. However, if I use the square recents button and quickly clear my app from the recents, the variables don’t get saved and in the next startup the variables that were saved from the last use are loaded.

I have had the problem where the save method does not save also. It’s either that or the DeleteAll method. I have yet to come up with a solution

The problem is exactly the same as the one you are having. Not saving on android but on pc it works fine

Can someone file a bug report?

Through further testing, I did find that the problem did not exist with a nexus 5, on which the app ran faster. However, it did exist on a moto g3, on which the app ran a bit slow.