Hi,
I am trying to use this plugin with a game I am working on.
It authenticates correctly, loads my test leaderboard, lists the achievements I setup in iTunesconnect and submits a leaderboard score - all without issue.
I would like to use the achievements and when I call submitAchievementScore, I get a bit of output in the console but the promise is never fulfilled.
RNGameCenter.init({leaderboardIdentifier:"my_test_board"}).then(res=>{
RNGameCenter.submitAchievementScore({achievementIdentifier:"ach3",percentComplete:50}).then(console.log).catch(console.warn).finally(console.log);
}).catch(console.warn);
With this code, I get the below output:
percent: 50
percentFloat: 50.000000
Nothing happens in then or catch. I added a finally as well but still no response.
If I call getAchievements it always returns an empty array so I'm guessing the submitted progress is never getting to the server.
Also, since installing this module, I can no longer trigger a reload through command+R or shake gesture, the console reports the message below and the UI freezes.
Invalidating <RCTCxxBridge: 0x6040003cce40> (parent: <RCTBridge: 0x6040000dc4d0>, executor: RCTWebSocketExecutor)
I am using
react-native-cli: 2.0.1
react-native: 0.50.4
Hi,
I am trying to use this plugin with a game I am working on.
It authenticates correctly, loads my test leaderboard, lists the achievements I setup in iTunesconnect and submits a leaderboard score - all without issue.
I would like to use the achievements and when I call submitAchievementScore, I get a bit of output in the console but the promise is never fulfilled.
With this code, I get the below output:
percent: 50
percentFloat: 50.000000
Nothing happens in
thenorcatch. I added afinallyas well but still no response.If I call
getAchievementsit always returns an empty array so I'm guessing the submitted progress is never getting to the server.Also, since installing this module, I can no longer trigger a reload through command+R or shake gesture, the console reports the message below and the UI freezes.
Invalidating <RCTCxxBridge: 0x6040003cce40> (parent: <RCTBridge: 0x6040000dc4d0>, executor: RCTWebSocketExecutor)
I am using
react-native-cli: 2.0.1
react-native: 0.50.4