I already get signed in in the main file which I did not post on here because it seems correct as it logs me in and says welcome. I also am able to see the leader board but it always shows my score as 0 I am very confused why it is not posting the score to the leader board any help will be grateful.
Below is the relevant code that I am using minus the sign in because that all works fine. I also printed my variables to make sure there were actually correct and they are in the console.
local gameNetwork = require "gameNetwork" gameNetwork.init("google") local leaderboardId = "my ID is here" timeDisplay = string.format( "%02d:%02d", myData.prevMinute, myData.prevSeconds ) local function submitScoreListener(event) gameNetwork.request("setHighScore", { localPlayerScore = { category = leaderboardId, -- Id of the leaderboard to submit the score into value = tonumber(timeDisplay) -- The score to submit } }) print(timeDisplay) print(leaderboardId) end local scoreSubmitButton = widget.newButton { top = 160, left = 500, width = width, height = size, label = "Submit Score", fontSize = buttonTextSize, onRelease = submitScoreListener, } local function showLeaderboardListener(event) gameNetwork.show("leaderboards") -- Shows all the leaderboards. end local showLeaderboardButton = widget.newButton { top = 200, left = 500, width = width, height = size, label = "Show Leaderboard", fontSize = buttonTextSize, onRelease = showLeaderboardListener, }