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 /
  • PlayStream /
avatar image
Question by bbekec · Feb 24 at 06:28 PM · Player InventoryentitiesPlayStream

Duplicated Event Problem

Hello,

Today i noticed that in Playstream There were lots of events from different player IDs. For example, I have a custom event in my game "SESSIN STARTED". I see this event in same time more than one and event ids are same.

I am worry for this situation because,

In my game players purchase coins via IAP. When they purchase I add their new coins to their Virtual Currency Balances.

In my scenario, in my purchasing script, to protect ther coins to be lost while adding to Playfab account, firstly, purchased coin amount is saved to PlayerPref, after this, I try to add their balance. If adition is succesfull, then Playerprefs value is set zero again. (maybe this is a wrong method, i dont know).

I see some players have a huge amount of coins in their balance. I was supposing that this is my mistake becaue of the method mentioned above.

Today, after seeing these duplicate event in Playstream, i started to think that this can be the reason for why they have a huge amount of coin in their balance.

So, what is your opinion? Could duplicated events cause adding extra coins to their balances?

(sorry for my grammer)

Thanks

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

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by bbekec · Feb 25 at 08:28 AM

Thanks for reply. "Getting started with PlayFab, Unity IAP, and Android - PlayFab | Microsoft Docs" this is just for Android. I have players from both Andoid and iOS. Maybe i can perform it for Android develeopers but again i will be in need of my scenario for iOS. I made a research but i could not find any resources for iOS.

" Also to clarify, event IDs are unique, each time an event is fired a different event ID is generated. Are the duplicate IDs you're talking about the user IDs?"

*Actually, i didnt get a screenshot. i just viewed details of duplicate ones, there was '"EventId":' with same string. I will watch it again and if it happens again, i'll get deeper details and share with you.

Thanks

Comment

People who like this

0 Show 5 · 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
avatar image Made Wang · Feb 28 at 09:06 AM 0
Share

Regarding IAP for iOS and Android, all playfab does is validate the receipt and grant the purchased item. What you need to confirm is if you grant the coins manually.

Also, you can look for events and get details in Game Manager->Data->Data Explorer (basic).

avatar image bbekec · Feb 28 at 09:54 AM 0
Share

Hello again, i found the problem i think. Player clicks to sign in button, while waiting response from server, the player clcks again and again to the button. This cause to repeating events in playstream. Solution to this can be deactivating button after the first click in order to prevent multiple clicks.

Is there any tutorial for IAP?

Thanks

avatar image Made Wang bbekec · Mar 01 at 08:21 AM 0
Share

I'm glad you solved this problem.

Currently, PlayFab only has IAP tutorials on Android.

avatar image bbekec Made Wang · Mar 04 at 09:01 PM 0
Share

Thanks. i need this tutorial. This is a request that please prepare and publish a tutorial for ios, too.

Regards

Show more comments
avatar image

Answer by Made Wang · Feb 25 at 06:31 AM

Why do you need to use PlayerPref to store coins? Referring to Getting started with PlayFab, Unity IAP, and Android - PlayFab | Microsoft Docs, PlayFab will grant the purchased item to the player after validating the receipt, without requiring you to grant it manually. Did you perform the coin grant operation twice here (one by PlayFab and one by you)?

Also to clarify, event IDs are unique, each time an event is fired a different event ID is generated. Are the duplicate IDs you're talking about the user IDs?

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

    11 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    Item expiration and events 1 Answer

    PlayStream Rules Custom Event Name wrong? Or Rule is not being triggered? 1 Answer

    How can I use actions with "character_inventory_item_added"? 1 Answer

    Is it possible to have PlayStream event when an inventory item expires? 1 Answer

    How to revoke player inventory item from the console and automatically update the player data 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