Vendor: Scott H Tech (@Scott_Harrison)
Plugin link: https://solar2dmarketplace.com/plugins?GameCenter_tech-scotth
Test Device: iPhone X (iOS 14)
Corona Version: 2020.3626 (2020.11.5)
There is a bug in the gamecenter plugin.
-
A’s event is delivered to B’s listener.
– A
gc.leaderboards.submit(lb_id, score, function(e) end)
– B
local function listener(e)
print( json.prettify(event))
end
gc.leaderboards.loadScore(lb_id, listener) -
The listener problem also affects the results.
– A
gc.leaderboards.loadScore(lb_id, listener) – my score
– B
gc.leaderboards.loadScores(lb_id, listener, {timeScope=“all”, playerScope=“global”, rangeMin=1, rangeMax=100}) – leaderboard
The result of the following A is not returned. Also, B only returns the results of 25 items. (If A is deleted, B normally returns 100 items.)
-
Closing the leaderboard (Default UI) will shut down the app.
-
If i submit multiple achievements at the same time, A bug appears in which unlocked items are reset to the locked state.
gc.achievements.submit(ach_id_1, progress, showBanner, function(e) end)
gc.achievements.submit(ach_id_2, progress, showBanner, function(e) end)
gc.achievements.submit(ach_id_3, progress, showBanner, function(e) end)
gc.achievements.submit(ach_id_4, progress, showBanner, function(e) end)
gc.achievements.submit(ach_id_5, progress, showBanner, function(e) end)
AND If possible, it would be nice to include the leaderboardId in the listener event of the leaderboard.