Hey, I am using this https://gist.github.com/TarasOsiris/9270285 in order to get the android id and then using LoginWithAndroidDeviceID
should I encrypt the ID and then send it to Playfab or is it safe as is?
Another thing If the user deletes the app and reinstalls it how can I log him to the same account?
my code :
string android_id = AndroidIdRetriever.Retrieve();
if (!string.IsNullOrEmpty(android_id))
{
PlayFabClientAPI.LoginWithAndroidDeviceID(new LoginWithAndroidDeviceIDRequest
{
AndroidDeviceId = AndroidIdRetriever.Retrieve(),
TitleId = PlayFabSettings.TitleId,
CreateAccount = true
}, result =>
{
}, OnPlayfabuthFailed);
}
And the last thing is when they restart start the game they have one button to start playing, how can I know with what sign-in option they did last time ? (I have Facebook and Google or anonymous) and then I want to try to log them up again without them clicking on a button something like auto remember me
thank you !!