Unity Ios and Android unique device id's

Hi we are currently working on our first app and would just like to know the best way to get a unique id for both android and iphone users when they play our game thanks.

i saw SystemInfo.deviceUniqueIdentifier but from what I read on ios 7 it is different each time the user deletes and reinstalls the app? so which is the best way to get a unique id for each device?

Thanks in advance.

Use SystemInfo.deviceUniqueIdentifier. Yes, I know that returns something different each install, but that’s what Apple want the behaviour to be.

I also read that for some devices, turning Wifi on or off makes deviceUniqueIdenfier to change since it is calculated via MAC address?

I also would like to remove permision to the phone from my manifest… I guess, will removing the permision break deviceUniqueIdentifier?