Hey there! :)
----
When running a task on a player segment, which executes a Cloudscript functions, the playerProfile in the context parameter looks like this:
{ "playerProfile": { "PlayerId": "3AD2...", "DisplayName": "lissi", ... "Locations": { "LastLogin": { "ContinentCode": "EU", "CountryCode": "DE", "City": "Frankfurt am Main", "Latitude": null, "Longitude": null } }, ... }
I have several questions regarding this.
1.) Why are Latitude and Longitude missing here - even though when the Last Login happened, they were included in the event, and they also show up, when manually requesting the Profile via GetPlayerProfile?
2.) What keys can be expected to be available within the "Locations"-dictionary? Only "LastLogin", or any others as well? Is "LastLogin" guaranteed to be there? The documentation ( https://api.playfab.com/playstream/profile/PlayerProfile ) does not seem to mention this.
3.) Somewhat unrelated: When manually requesting the Players Locations via GetPlayerProfile, which Locations can be expected to be in the list (is there for example a certain timeframe or a certain amount of locations that are stored on the server?). Is the list ordered? Is there a guarantee, that at least the most recent location will be included?
---
Thanks!