question

brendan avatar image
brendan asked

Android device ID with Unity

learner
started a topic on Fri, 08 May 2015 at 1:21 PM

Hello,

when using Android device ID to login to Playfab via LoginWithAndroidDeviceID in the client API, does SystemInfo.deviceUniqueIdentifier provide the correct Id for the call?

Would this also be the necessary ID for LoginWithIOSDeviceID?

Thank you.

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

·
brendan avatar image
brendan answered

Best Answer
Brendan Vanous said on Fri, 08 May 2015 at 1:50 PM

For Unity development, you can use the SystemInfo.deviceUniqueIdentifier for the Device ID in our login and link calls, yes. The caution I would give is that you should make sure to always be consistent about this in any updates, as this ID won't necessarily match the recommended Device ID for those platforms (see below).

Android: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html

iOS: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor


1 Comment
Brendan Vanous said on Fri, 08 May 2015 at 1:50 PM

For Unity development, you can use the SystemInfo.deviceUniqueIdentifier for the Device ID in our login and link calls, yes. The caution I would give is that you should make sure to always be consistent about this in any updates, as this ID won't necessarily match the recommended Device ID for those platforms (see below).

Android: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html

iOS: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor

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.