I have some strange problem with function gameNetwork.show(“achievements”) (I’m using Google play game service). Here is part of my code:
gameNetwork=require(“gameNetwork”);
function loginToGameNetwork()
if(dataStorage.isLoggedInToGameNetwork()==false)then
gameNetwork.request(“login”,{listener = loginListener,userInitiated = true}); end);
else
gameNetwork.show(“achievements”);
end
end
When user clicks on button then loginToGameNetwork() function is called. If user is not logged in then it should login user first. If user is already logged in then it should just show achievements.
My problem is next: when I am logged in, every time I click on that button it shows me achievements without problem but it also increases amount of memory that my game is using. For example if I click 10 times on this button it will increase amount of memory for 60MB(6MB each time it shows achievements ).
Am I doing something wrong? This really bothers me bacause it unnecessarily holds memory…
Thanks in advance!