question

Syed Rizwan avatar image
Syed Rizwan asked

Playfab shows error when game runs without internet connection

The game runs fine when internet connection in on. But when there is no internet connection, Playfab throws errors. What are the best ways to handle these errors ?

P.S. I don't want to store data generated in offline to Playfab.

/Client/LoginWithCustomID: Cannot resolve destination host

PlayFab EditorExtensions: Caught an error:Invalid JSON string

PlayFab EditorExtensions: Caught an error:SharedErrorCallbackCannot resolve destination host
game manager
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

·
Seth Du avatar image
Seth Du answered

Since you don’t need to implement offline gameplay, usually the game will exit to the start screen or launcher and wait for a successful login when internet connection is lost. In addition, it is also common that the current level will continue and will be cached for the result, which will be submitted to PlayFab when reconnection. When the level completes, the game will exit to login page (start screen).

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.