question

Caner Kara avatar image
Caner Kara asked

Getting player logged in location

Hi, we are invoking a Azure Function by PlayStream player_logged_in event, trying to find logged in location. Found two places about location: context.PlayerProfile.Locations and context.PlayStreamEventEnvelope.EventData.Location.

  1. Which one should we use?
  2. The first element of PlayerProfile.Locations is from the last login or the first login?
  3. What is the proper way to test for different countries?
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

>>Which one should we use?

Since the context.PlayerProfile.Locations is the same as the context.PlayStreamEventEnvelope.EventData.Location, so, it doesn’t matter which one you use.

>>The first element of PlayerProfile.Locations is from the last login or the first login?

The first element of PlayerProfile.location is from the last login.

>> What is the proper way to test for different countries?

Since the location is estimated from factors such as IP address, you may try to change your IP through a proxy server to test for different countries.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.