question

brendan avatar image
brendan asked

Incorrect Code in Prefab

sketchwork
started a topic on Tue, 16 June 2015 at 12:00 PM

Hi there,

Just donwnload the latest version of the PlayFab Asset and the prefab you place in the in your entry scene (PlayFabDeviceSignIn) I believe to be wrong:

#if PLAYFAB_ANDROID
        PlayFabClientAPI.LoginWithIOSDeviceID (new LoginWithIOSDeviceIDRequest
        {
            DeviceId = SystemInfo.deviceUniqueIdentifier,
            OS = SystemInfo.operatingSystem,
            DeviceModel = SystemInfo.deviceModel,
            CreateAccount = true
        }, onLogin, null);
        #elif PLAYFAB_IOS
        PlayFabClientAPI.LoginWithAndroidDeviceID (new LoginWithAndroidDeviceIDRequest
        {
            AndroidDeviceId = SystemInfo.deviceUniqueIdentifier,
            OS = SystemInfo.operatingSystem,
            AndroidDevice = SystemInfo.deviceModel,
            CreateAccount = true
        }, onLogin, null);
#endif 
Seems strange that you check for Android complation and then try to login with iOS?

Is that correct?

Many thanks,

Justin

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

4 Comments
zacb said on Wed, 17 June 2015 at 7:28 PM

Hey Justin,

I'd be happy to help.

First, can you point me to the URL for the project you downloaded?

-Zac


sketchwork said on Thu, 18 June 2015 at 1:28 AM

It is the download on this page: https://www.playfab.com/unity

The link is this one which must be out of date: http://bit.ly/1DcDHf1

All the best,

Justin


zacb said on Thu, 18 June 2015 at 9:08 AM

Thanks for the info Justin.

I found the error, and will get this fixed and post back here when the new build has been uploaded.

-zac


zacb said on Mon, 22 June 2015 at 9:33 AM

Hey Justin,

The new asset package and SDK have been added to our usual spots. Check them out over at: https://playfab.com/unity.

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.