question

Wang Yichun avatar image
Wang Yichun asked

Find user country.

Is there a way to get user's country by write a code?

I need get the country in Player/Overview/account summery/country & origination.

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

·
brendan avatar image
brendan answered

Yes, the player's location is always part of the log in event (player_logged_in), and when using a Rule to trigger a Cloud Script, you can get all the info on the event details via the context passed in. See this post for more info on that: https://community.playfab.com/questions/7770/task-triggering-cloudscript-question.html

2 comments
10 |1200

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

Wang Yichun avatar image Wang Yichun commented ·

Great, i will try!

0 Likes 0 ·
Wang Yichun avatar image Wang Yichun commented ·

I use a com.playfab.player_logged_in event and cloudscript, worked it out.

Thank you!

0 Likes 0 ·

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.