sistemlogikadigital Posted February 6, 2019 Share Posted February 6, 2019 i try to submit score to leaderboard but got an error like this: code: "LEADERBOARD_NOT_FOUND" message: "A leaderboard with the name "Leaderboard.0" was not found", after call FBInstant.initializeAsync( ) and FBInstant.startGameAsync(), i call this FBInstant.context .createAsync('100') .then(function() { //bla bla }); i dont undestand why context id became 0 instead 100, thanks!! Quote Link to comment Share on other sites More sharing options...
b10b Posted February 6, 2019 Share Posted February 6, 2019 @sistemlogikadigital this will try to create a new Context with another Player (of id "100"). Perhaps no such Player exists, the new Context request fails, and the id value assigns to "0" (when relayed through the Leaderboard requests or prior)? Try replacing //bla bla with the below to verify whether Context creation worked as expected: console.log(FBInstant.context.getID()); Quote Link to comment Share on other sites More sharing options...
sistemlogikadigital Posted February 6, 2019 Author Share Posted February 6, 2019 6 hours ago, b10b said: @sistemlogikadigital this will try to create a new Context with another Player (of id "100"). Perhaps no such Player exists, the new Context request fails, and the id value assigns to "0" (when relayed through the Leaderboard requests or prior)? Try replacing //bla bla with the below to verify whether Context creation worked as expected: console.log(FBInstant.context.getID()); alrigth i got this, i just submit the score without context id and the score is saved to leaderboard. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.