Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Kilosoft · Apr 23, 2019 at 02:01 PM · CloudScriptLeaderboards and StatisticsPush Notifications

How to get the position (rank) of the leaderboard when you reset the leaderboard. And send a notification with rank?

How to get the position (rank) of the leaderboard when you reset the leaderboard. And send a notification with rank?

Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jital ♦ · Apr 23, 2019 at 06:34 PM 0
Share

Greetings,

Could you provide more details on how you're attempting to implement? When Leaderboards are reset they contain no rankings, so this notification to the player would not contain any information.

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by SethDu · Apr 24, 2019 at 07:32 AM

I am not sure how will you reset your leaderboard but if you want to retrieve the last version of leaderboard, you may make use of the UseSpecificVersion and Version properties in the leaderboard retrieval related API call requests, like GetLeaderboard, GetLeaderboardAroundPlayer and etc.

For Essential Tier users, you may notice that only the last version of leaderboard is available to retrieve. You can implement cloud script functions that will call GetLeaderboardAroundPlayer to get the rank and then send it via SendPushNotification API calls. In addition, you can configure a Scheduled Task to run this functions to each member in All Players segment.

By the way, there is a programmatical way to reset the leaderboard but it is only included in Admin API which means, you cannot reset leaderboard in Cloud Script, instead you may implement it in your external secure server. However, like what @jital has mentioned, if you tell us more about your scenario, we can offer more help.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    5 People are following this question.

    avatar image avatar image avatar image avatar image avatar image

    Related Questions

    best practice for saving statistics for leaderboards 1 Answer

    Leaderboard related Questions 1 Answer

    CloudScript is not returning the right value of player statistics 1 Answer

    Recived notification showing without "Subject" 1 Answer

    Can Cloud Code Access the Admin API 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges