question

Kim Strasser avatar image
Kim Strasser asked

How can I get the iOS and Android DeviceID?

Is it not possible to use the following code in Xamarin? Is this code just for Unity?

public string ReturnMobileID()

{

string deviceID = SystemInfo.deviceUniqueIdentifier;

return deviceID;

}

I get this error message: Error CS0103: The name 'SystemInfo' does not exist in the current context (CS0103)

I want to create anonymous login mechanisms for iOS and Android.

I use PlayFab with Xamarin and MonoGame. I don't have Unity.

How can I get the DeviceID for iOS and Android devices?

Authenticationandroid
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

·
Kim Strasser avatar image
Kim Strasser answered
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.