Please tell me method to get player localtion or last visited place. Any method from serverApi or ClientApi
Please tell me method to get player localtion or last visited place. Any method from serverApi or ClientApi
Find out one way:
var argsLocal = { PlayFabId: plId, ProfileConstraints:{ShowLocations:true} };
var res = server.GetPlayerProfile(argsLocal);
Is it the most comfortable way?
Yes, the player profile is how you would query on the locations for the user. If you want specifically the most recent location, one thing you could do would be to use a Cloud Script, triggered by the player_logged_in event, which copies the location for the login from the event into player data.
1 Person is following this question.