Internet Status Provider

Winzo, as a platform, requires displaying accurate information to the developers regarding connectivity status. This functionality allows the developer to appropriately adapt to the internet connectivity and further use it for Reconnection Purposes.

For the same reason, we have a seamless connectivity status/ping handler that has 4 status

Ping Status vs Internet Connection

0 Low Ping = Good Internet 1 Medium Ping = Manageable Internet status 2 High Ping = Low Internet 3 Very High = Equivalent to No Internet

HOW TO USE - SAMPLE CODE BLOCK

WinZO will provide the internet status via an event. This event can also be used to check the internet connection and in case of disconnection, the game can use the reconnection logic to connect back to the server or any multiplayer framework that it might be using.

Use of Event - The event must be subscribed and unsubscribed in OnEnable() and OnDisable() methods with the parameterized (int) method being passed in the parameters.

        public void OnEnable()
        {
            WinzoEventManager.StartListeningPingReceive(GetSignalStrength);
        }
        public void OnDisable()
        {
            WinzoEventManager.StopListeningPingReceive(GetSignalStrength);


        }
        void GetSignalStrength(int index)
        {
            Debug.Log("Internet status passed " + index);
            if(index == 3)
            {
                Debug.Log("Internet Status is too bad, check connectivity");
            }
        }

Use in the SDK: Winzo’s SDK offers a unique feature allowing developers to simulate different internet connection statuses for testing purposes. This capability enables developers to assess how their games perform under various network conditions. Within the sample SDK provided by Winzo, developers can select different options to mimic different internet connection statuses. This ensures comprehensive testing of the game's performance across different network scenarios.

However, it's crucial to note that while the sample SDK allows for internet status simulation, once the game is integrated into the WinZO app, it will operate according to the actual internet status of the device. This means that any issues identified and resolved during testing with simulated internet statuses will accurately reflect the game's performance when played by users in real-world conditions.

Last updated