question

jimmy avatar image
jimmy asked

Testflight Update Erasing Player Data

Hi,

We are making a game with Unity + Playfab for iOS. When we push a new app version to Testflight and a user updates their game, a new account is created and so all their previous progress is gone. We are using "LinkIOSDeviceID" and so in-between sessions, the player data works perfectly.

The issue only arises when we update the game from Testflight. We tracked our player before & after updating on one device and after updating, the device creates a new account on Playfab and is not linked to the old account

Any help on how we can save player data between different versions of the great would be really helpful. Thanks!

Player Data
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The only way that could happen is if they're generating a new Device ID for your app. I believe what's happening is that TestFlight is uninstalling the old version, then installing the new one - and since there are no other apps from your developer account on the device, that means you lose your ID on that device (Apple generates a unique Device ID for each developer's apps, but it's only there as long as your apps are).

For Apple, the best thing to do is to save the Device ID to the user's KeyChain, so that you can retrieve it from there even if the user changes devices. You can either continue to use the iOS Device ID login, or the Custom ID login with it.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.