question

ashemez@outlook.com avatar image
ashemez@outlook.com asked

Photon with Xamarin

Hello,

I want to use photon with playfab using xamarin but I guess PlayFab doesn't have an authentication method for photon, it is only for unity I think. If so I'll need to authenticate photon separately within my xamarin project, and do you have plans to include it for xamarin?

Thanks

 

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

We are integrated with Photon Realtime, Turnbased, and Chat. All you need to do it activate it in the Add-ons Marketplace. This will provide you with PlayFab account AppIds for use in Photon Cloud. Then, once you've signed a player into PlayFab, you can then use the Client/GetPhotonAuthenticationToken API call to get a token which can be used in signing the player into the Photon Cloud applications. This API works the same across all platforms and languages, as it is a web-based API. For Xamarin, this means you can call it as you would any other REST service, as shown in their documentation: https://developer.xamarin.com/recipes/android/web_services/consuming_services/call_a_rest_web_service/.

 

Also, using our Photon integration, we have everything configured to automatically call into Cloud Script for your title on any webhook from Photon (room enter, leave, parameter set, etc.). You can read more about that in this guide: https://api.playfab.com/docs/using-photon-with-playfab/.

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.