question

iphone@itiw-webdev.com avatar image
iphone@itiw-webdev.com asked

Integrate Photon server with playfab ios sdk

Hello, I am new in using playfab. so far i have connected to playfab Now i am trying to create a room using photon server which is kind of like a clan where multiple player can join in. But i haven't been able to connect with photon server using objective-c. Here i have generated the photon authentication token




p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4f8187}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #008400}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #31595d}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #000000}
span.s3 {font-variant-ligatures: no-common-ligatures; color: #3e1e81}
span.s4 {font-variant-ligatures: no-common-ligatures; color: #4f8187}
span.s5 {font-variant-ligatures: no-common-ligatures; color: #31595d}
span.s6 {font-variant-ligatures: no-common-ligatures; color: #703daa}
span.s7 {font-variant-ligatures: no-common-ligatures; color: #ba2da2}
span.s8 {font-variant-ligatures: no-common-ligatures; color: #d12f1b}



GetPhotonAuthenticationTokenRequest *authenticationRequest = [GetPhotonAuthenticationTokenRequest new];

    authenticationRequest.PhotonApplicationId = photonAppId;

    //OnPlayFabError

    [[PlayFabClientAPI GetInstance] GetPhotonAuthenticationToken:authenticationRequest success:^(GetPhotonAuthenticationTokenResult *result, NSObject *userData) {

        [self authenticateWithPhoton:result];

    } failure:^(PlayFabError *error, NSObject *userData){

        NSLog(@"error %@",error.description);

    } withUserData:nil];

How can i do that?

apisphotonShared Group Data
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

Sorry, but can you provide the actual error response you're getting to the call to GetPhotonAuthenticationToken?

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.

iphone@itiw-webdev.com avatar image iphone@itiw-webdev.com commented ·

No i got the photon authentication correctly. Then i am trying to create a room but i have no idea how to do that. Forgive me if i am being naive.

0 Likes 0 ·
brendan avatar image brendan iphone@itiw-webdev.com commented ·

If the question is specific to the Photon Realtime functionality, you'll need to ask the team at Exit Games, as they created, maintain, and support the Photon Realtime and Photon Chat functionality. We can really only support issues in our integration (so, authentication and webhook calls into Cloud Script).

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.