0

I am reporting several GKAchievements with reportAchievements:withCompletionHandler: to Game Server and receive no errors.

However, when I request them immediately afterwards with loadAchievementsWithCompletionHandler: I receive an empty array of achievements (and again no error) instead of the expected ones.

This is happening in the sandbox environment. The reported achievements have small percentComplete (above 0%, but below 1%, i.e. far below 100%), but I should still be able to load them, right?

Am I doing something wrong here? Has anybody observed similar behavior?

CodeSmile
  • 64,284
  • 20
  • 132
  • 217
Drux
  • 11,992
  • 13
  • 66
  • 116

2 Answers2

1

I can confirm that percentages under 1 don't work in the sandbox. The documentation mentions nothing about this limitation:

The range of legal values is between 0.0 and 100.0, inclusive.

This makes me think that it's just a sandbox thing to save traffic. Can anyone confirm this?

zoee
  • 93
  • 1
  • 7
0

The problem apparently goes away if percentComplete >= 1. I've just tried with 2% and that worked.

Drux
  • 11,992
  • 13
  • 66
  • 116