Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing loadPreviousOccurrence #106

Open
alexandrepage opened this issue Mar 26, 2023 · 4 comments
Open

Missing loadPreviousOccurrence #106

alexandrepage opened this issue Mar 26, 2023 · 4 comments

Comments

@alexandrepage
Copy link

Hi 👋
First of all, thanks for that amazing library!

I realized that for the recurring leaderboard type, we are missing a way to get the player score from the last occurrence. Maybe the Player.getPlayerScore method could have an optional boolean to fetch the last occurrence instead.

Here's the documentation I found: https://developer.apple.com/documentation/gamekit/gkleaderboard/3618829-loadpreviousoccurrence

Thank you!

@Abedalkareem
Copy link
Owner

Hi @alexandrepage 👋🏼

Thanks for sharing this!

Do we have something similar on Android? or should it be an iOS thing?

@alexandrepage
Copy link
Author

I've look at the Google Play Games Services API, but I can't find the same functionality unfortunately. So yes, it seems to be an Apple thing only. Still pretty useful though 😬

@theLee3
Copy link
Collaborator

theLee3 commented Sep 14, 2023

This is in fact an Apple only thing, as Game Center allows you to create recurring leaderboards that refresh at any timed interval you want. This method is specific to this type of leaderboard. Google has no equivalent.

I can implement this if you aren't working on it @Abedalkareem

@Abedalkareem
Copy link
Owner

@theLee3 Maybe we can implement this after I do the migration from the iOS/macOS folders to Darwin folder:
#125
I'm just testing if everything is working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants