Skip to content

Cannot record achievement progress #2

Description

@Big-Boy-420

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions