Hi,
I need to merge one account to another. All the game data is transferred without problems, but I can't move the GP external authentication.
I tried this way but something is not working.
if (tokenGP != "null") { Spark.sendRequest( { "@class": ".GooglePlusConnectRequest", "accessToken": tokenGP, "doNotLinkToCurrentPlayer": false, "errorOnSwitch": false, "switchIfPossible": false, "syncDisplayName": false } ); }
Thanks!
Irakli
SOLVED
if (tokenGP != "null") { Spark.sendRequest( { "@class" : ".SocialDisconnectRequest", "systemId" : "GP"} ); Spark.sendRequestAs( { "@class": ".GooglePlusConnectRequest", "accessToken": tokenGP, "doNotLinkToCurrentPlayer": false, "errorOnSwitch": false, "switchIfPossible": false, "syncDisplayName": false }, connectResponce.switchSummary.id ); }
*** CORRECTION ***
I was linking to current connected GameSparks account (too long working day). I need to link to the account to which current account should be merged. I changed to sendRequestAs, but it didn't helped anyway.
if (tokenGP != "null") { Spark.sendRequestAs( { "@class": ".GooglePlusConnectRequest", "accessToken": tokenGP, "doNotLinkToCurrentPlayer": false, "errorOnSwitch": false, "switchIfPossible": false, "syncDisplayName": false }, connectResponce.switchSummary.id ); }
Irakli Geleishvili
Hi,
I need to merge one account to another. All the game data is transferred without problems, but I can't move the GP external authentication.
I tried this way but something is not working.
Thanks!
Irakli
SOLVED
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstIrakli Geleishvili
*** CORRECTION ***
I was linking to current connected GameSparks account (too long working day). I need to link to the account to which current account should be merged. I changed to sendRequestAs, but it didn't helped anyway.
Irakli Geleishvili
SOLVED
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics