These are possible error codes returned by API calls LinkAndroidDeviceId and LinkIOSDeviceId.
These are possible error codes returned by API calls LinkAndroidDeviceId and LinkIOSDeviceId.
Here's the extra info you get back in the errorMessage part of the response for those two error codes:
LinkedDeviceAlreadyClaimed: "That device is already linked to a different user."
DeviceAlreadyLinked: "User already linked to a different device."
In what situations would DeviceAlreadyLinked be fired? From the above message, it seems like that's saying the recoverable login account already has a different device linked. But isn't the ability to link multiple devices to one account the default with Playfab?
Also, is LinkedDeviceAlreadyClaimed only fired when linking the current device will result in an account being 'orphaned', or does it fire even if the current device is linked to an account with multiple devices attached?
DeviceAlreadyLinked would be returned in any case where it's not possible to have more than one of a given device linked to an account. It used to be the case that accounts could only have one linked iOS device and one Android device, so it's more historical (though could be used for another device, potentially, in future).
LinkedDeviceAlreadyClaimed is saying "no, we're not linking you to that account, because it's linked to another user". So the other user's account isn't changed, and the device is still linked to it.
For anyone who finds this thread in the future:
My above question of "...is LinkedDeviceAlreadyClaimed only fired when linking the current device will result in an account being 'orphaned'..." is actually applied to the error code LinkedIdentifierAlreadyClaimed.
Just ran into this error for the first time. The set up was:
Just adding this to complete the descriptions for all the related 'device already claimed/linked' messages. If any of this is a misunderstanding on my part, feel free to correct me PlayFab team.
Technically, it means that the specific login mechanism you are forcing to link to a different account will be removed from the account it's currently on. If that's the only means you have to log into the player account, then yes, in that case it would be 'orphaned'.
3 People are following this question.