How I can get the player email or unique ID when login in Google Play Services?

Hello!

I’m creating a game and I’m using UE 4.20. First I want to make the game for Android, my game is based on blueprints, login with google play works fine. But I need to get the Google Play email or something to identify the user because I want to use VaRest plugin to auto-register them in my own server using PHP/MySQL to read/write.

For example, when I login in google play with my email, then in my level bp I want to know what email (or unique id, I don’t know if there’s something to identify unique users) is using, so I can check in the DB if the player is new or not, If it’s new I add him to DB and I’ll show him the “Register” HUD, but If he has an account in my web server, I’ll show him his player’s profile retrieving data from PHP. I only want to know how I can idenity the user, using a fixed id or email or something to retrieve the data from my mysql server.

Thanks

Good morning. One thing that mightttt help you is to use the blueprint node Get unique device id. As it says this id is device specific, so logging in with another device as the same user might make problems. Have you implemented google play? Sorry for asking but I‘m stuck withi it and need to release my game. If you have time look up into my questions on my profile page. Good luck