0

I'm trying to implement a leaderboard in one of my games using swift and I know that my code for implementing the leaderboard is correct, but I'm not sure how to write the leaderboard ID. The ID I created is FRHS1. Should I use "FRHS1", "com.______.FRHS1" or the number that iTunes Connect assigned, which is "55341796".

Thanks!

  • You should create Leaderboard in Itunes Connect then you will get the leaderboard ID there – duan Mar 06 '15 at 05:26

1 Answers1

0

You can choose arbitrary (unique) strings as leaderboard IDs and assign them in iTunes Connect. Mine look like this: leaderboard.identifier = "com.domain.app.leaderboard".

enter image description here

Drux
  • 11,992
  • 13
  • 66
  • 116
  • In that field, I just typed in "FRHS1" and not "com.domain.app.leaderboard". Can I just use FRHS1, or should I delete that leaderboard and create one using your syntax? – Stephen Vondenstein Mar 06 '15 at 06:17
  • @StephenVondenstein try it: it will work with "FRHS1" as well. – Drux Mar 06 '15 at 06:18