facebook / facebook-sdk-for-unity

The facebook sdk for unity.
https://developers.facebook.com/docs/unity
Other
489 stars 257 forks source link

Duplication of Purchase event after reinstall the game on Android #652

Open Moortini opened 2 years ago

Moortini commented 2 years ago

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

Goals

Fix auto purchase event sended by Facebook SDK.

Expected Results

One in-app purchase should create one auto purchase event on Facebook.

Actual Results

After reinstall of the game Facebook creates duplication of the auto purchase event that was already sent before uninstall of the game. It was a consumable in-app.

Steps to Reproduce

  1. Install the game and make consumable in-app purchase in it.
  2. See that in Facebook Events Manager auto purchase event was received.
  3. Uninstall the game.
  4. Install the game again.
  5. See that in Facebook Events Manager the same auto purchase event was received once again after Facebook SDK Initialization.

Code Samples & Details

We have no code for tracking purchase events in Facebook. It only sended automatically by Facebook SDK. After in-app purchase was completed Facebook receives purchase event. After that you can uninstall the game and reinstall it once again and the same event with all the same parameters (time, token etc.) will be sended to the Facebook in ~10 seconds after fb_mobile_activate_app event was received.

JordiFB commented 1 year ago

We can't reproduce this bug, could you check the latest version 15.1.0?