question

Darius Vu avatar image
Darius Vu asked

How to get the previous login time?

Dear Team,

Could you tell me how to get the previous login time using Playfab?

I get the last login time using GetPlayerProfile(), but I see that the result.PlayerProfile.LastLogin is the current login time, it is not the previous login time.

I also see the bug report in here:

https://community.playfab.com/questions/17836/lastlogintime-appears-to-be-the-current-login-time.html

Is it fixed or not?

Thank you so much!!!

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

·
Seth Du avatar image
Seth Du answered

Last login time will be updated after a successful login, the retrieved time in GetPlayerProfile won’t satisfy your requirement. Please try to get the precise last login time in the callback of login related API. If you require this data, you may store it somewhere else, for example Player Data for later retrieval.

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.