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 /
  • General Discussion /
avatar image
Question by Mickael Bonfill · Jun 28, 2021 at 01:23 AM · CloudScriptunity3dLeaderboards and Statistics

Sync PlayFab and Google Play Games / Game Center data

Hello,

I am using the Google Play add-on from the marketplace that is useful for Sign-In/Linking social account with PlayFab Player account. I was wondering what is the best way to achieve a kind of synchronization between PlayFab and external services like Play Games or Game Center?

Let's say I have set up an achievement in Play Games, that can be unlocked when a player finishes his very first game.

The logic behind would be to have "played_games_count" leaderboard, initialized at 0 when a player account is created (using a Rule), and each time a game is over, the client sends an Event to update statistics. To keep track of new players, I also created a Segment "New players" with the condition "played_games_count == 0".

Maybe a CloudScript triggered when the player is going out of this Segment would help, in order to notify the client about this new progression. Then the client could make some calls to the social platform to update the progression on their side too.

I just feel a bit odd to have to manage the same data on several services, which creates a kind of denormalization and could generate an inequality between services if some calls fail.

I am pretty sure some people here has encountered this real world scenario, so I just want to get pieces of advice about the subject of sync things together.

Thank you.

Comment

People who like this

0 Show 0
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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jun 28, 2021 at 07:22 AM

>> an achievement in Play Games, that can be unlocked when a player finishes his very first game.

According to the description, you want to use segment to handle this achievement for a completely automatic handing procedure. It is feasible, but to unlock Google Play/iOS achievement, you may need additional implementation, like integrating Google Play Game service web API on Azure Function for server-to-server interactions. In terms of iOS, I’m not sure if server-to-server is allowed, please find support from Apple developer community.

If you have concerns about sync issues, you may store the all achievement progresses of a player in Player Read-Only Data or Internal Data for verification and synchronization.

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

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Is there a way to create Leaderboards and add some players to them via code 1 Answer

    Friends of Friends 2 Answers

    webRpcResponse.Parameters are coming up null / RoomCreated not being called 4 Answers

    Ban players (devices) from game 1 Answer

    Setting the currency of a player to an existing statistic? 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