Hi. I have a problem with merging data after DeviceAuthentication. When I launch my game in editor or device, and do FacebookConnectRequest, I getting different responses from Sparks, response may contains "newPlayer":true or "newPlayer":false. For testing authentication, every time I delete player data with NoSQL explorer at GS. However if I getting "newPlayer":false on FacebookConnectRequest (after player data removed and DeviceAuthentication), my FbConnected player currency1 is zero, my DeviceAuthenticated player has 100 coins.
Best Answer
S
Stephanie Fisher
said
over 6 years ago
Problem solved, I forgot to delete player from externalAuthentication table
Deleting player data from NoSQL probably confuses things.. I assume you delete the player from the player collection, but the Facebook connection data remains in the external authentications collection. Deleting from the external authentication collection as well might work.
But I think the simpler thing to do for your testing, is to use different device ids and Facebook test users instead of deleting the player in NoSQL. You can just use any string for the device id in DeviceAuthentication, it doesn't have to be the actual id of the device you're using.
S
Stephanie Fisher
said
over 6 years ago
Answer
Problem solved, I forgot to delete player from externalAuthentication table
Stephanie Fisher
Hi. I have a problem with merging data after DeviceAuthentication. When I launch my game in editor or device, and do FacebookConnectRequest, I getting different responses from Sparks, response may contains "newPlayer":true or "newPlayer":false. For testing authentication, every time I delete player data with NoSQL explorer at GS.
However if I getting "newPlayer":false on FacebookConnectRequest (after player data removed and DeviceAuthentication), my FbConnected player currency1 is zero, my DeviceAuthenticated player has 100 coins.
Problem solved, I forgot to delete player from externalAuthentication table
1 person has this question
- Oldest First
- Popular
- Newest First
Sorted by PopularBaris Tumerkan
Deleting player data from NoSQL probably confuses things.. I assume you delete the player from the player collection, but the Facebook connection data remains in the external authentications collection. Deleting from the external authentication collection as well might work.
But I think the simpler thing to do for your testing, is to use different device ids and Facebook test users instead of deleting the player in NoSQL. You can just use any string for the device id in DeviceAuthentication, it doesn't have to be the actual id of the device you're using.
Stephanie Fisher
Problem solved, I forgot to delete player from externalAuthentication table
Stephanie Fisher
Thanks, facebook test users really helpful
-
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