03-10-2012 10:51 PM
Is it possible to do something like "Merge or Transfer Device" on Android version of Scoreloop?
What i must do to connect user with existing profile?
Solved! Go to Solution.
03-15-2012 06:36 AM
Hi,
Yes.. It is possible.
To do a merge/ transfer of a device to an existing Scoreloop account, the user/ player should try to update the User profile on the new device where he should specify the email address as the email address associated with the existing Scoreloop account. When an email address which is already associated with a Scoreloop account is specified, an automated email from the Scoreloop server is sent to the specified email. The email would contain the link which they could use to merge the accounts.
As a game developer, when updating the user data on to the Scoreloop server, you need to make sure to check the returned callback. If the user update operation returns SC_INVALID_USER_DATA, you must call SC_UserController_GetValidationErrors() to obtain the exact cause of the failure, for example, (SC_EMAIL_ALREADY_TAKEN, SC_EMAIL_FORMAT_INVALID, SC_USERNAME_ALREADY_TAKEN, or SC_USERNAME_FORMAT_INVALID ). It may also return SC_EMAIL_ALREADY_TAKEN + SC_USERNAME_FORMAT_INVALID. So, in this case, it might return SC_EMAIL_ALREADY_TAKEN.. So, you have to display a meaningful message in the UI telling the user to check the email if he wants to do a merge or transfer.
Hope this helps !
Thanks,
Prenitha
03-15-2012 06:48 AM