question

Paul Ewers avatar image
Paul Ewers asked

DISABLE_PLAYFABCLIENT_API compiler error in PlayFabAuthenticationContext.cs,PlayFabAuthenticationContext.cs compiler error with DISABLE_PLAYFABCLIENT_API

Hello, I'm a new PlayFab developer here using Unity 2019.1.8 with PlayFabSdk 2.75 191001.

When I define DISABLE_PLAYFABCLIENT_API, I get a compiler error in PlayFabAuthenticationContext.cs:

        public void ForgetAllCredentials()
        {
            PlayFabId = null;
#if !DISABLE_PLAYFABCLIENT_API
            ClientSessionTicket = null;
#endif
...

I feel like the PlayFabId = null; line should be moved one line down inside the #if block?

Just wanted to call this out if anyone is in the know. Thanks.

,

Hello, I'm a new PlayFab developer here using Unity 2019.1.8 with PlayFabSdk 2.75 191001.

When I enable DISABLE_PLAYFABCLIENT_API, I get a compiler error in PlayFabAuthenticationContext:

        public void ForgetAllCredentials()
        {
            PlayFabId = null;
#if !DISABLE_PLAYFABCLIENT_API
            ClientSessionTicket = null;
#endif
...

I feel like the PlayFabId = null; line should be inside the #if block?

Just wanted to call this out/confirm if this sounds correct. Thanks.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Paul Ewers avatar image Paul Ewers commented ·

Well, I'm unable to edit, but my original post got submitted 2x somehow :(

0 Likes 0 ·

1 Answer

·
Seth Du avatar image
Seth Du answered

I guess you are right. I will inform our team but so far does it have effect on your development progress? I'm more interested on why you need to disable client API. May I ask what's the scenario?

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Paul Ewers avatar image Paul Ewers commented ·

Thanks @SethDu. Doesn't really affect development, but I'm working on a new project that won't ship with PlayFab integration (will be a post launch update) so it's nice to be able to disable the code so it's not in our launch build.

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Paul Ewers commented ·

I see. I have informed our team about it and will keep this thread updated if there is any feedback from our team. So far, moving PlayFabId = null; sentence one line down will solve compile error and this should be a temporary solution.

0 Likes 0 ·

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.