Skip to main content
Version: 5.5

Network unavailable event

The network unavailable event serves as a notification when the network becomes unavailable.

LINE Planet will try to reconnect the call for a while after a network unavailable event occurs. If the reconnection attempt fails, the call is disconnected. If the reconnection attempt is successful, LINE Planet continues the call with a network re-available event.

You can use these events to display a message with the status of network in the current call on your application.

Supported call typeSupported version
1-to-1 callAll versions
Group call (conference)PlanetKit 5.4 or higher

1-to-1 call

In 1-to-1 calls, the following callbacks of NetworkListener are used for the network unavailable event and the network re-available event.

Network unavailable event callback

The onNetworkUnavailable callback is invoked when the network has a problem. This callback includes the following parameters:

ParameterDescription
isPeerWhether there is a problem with the peer. Can be one of the following values:
- true: The peer's network has a problem.
- false: The local user's network has a problem.
disconnectAfterSecTime to end the call when reconnection fails (in seconds). If reconnection fails, the call is disconnected after this duration with the disconnect reason of UNAVAILABLE_NETWORK.

Network re-available event callback

The onNetworkReavailable callback is invoked when the network is recovered. This callback includes the following parameter:

ParameterDescription
isPeerWhether there was a problem with the peer. Can be one of the following values:
- true: The peer's network had a problem.
- false: The local user's network had a problem.

Group call

In group calls, the following callbacks of ConferenceListener are used for the network unavailable event and the network re-available event.

Network unavailable event callback

The onNetworkUnavailable callback is invoked when the local user's network has a problem. This callback includes the following parameter:

ParameterDescription
disconnectAfterSecTime to end the call when reconnection fails (in seconds). If reconnection fails, the call is disconnected after this duration with the disconnect reason of UNAVAILABLE_NETWORK.

Network re-available event callback

The onNetworkReavailable callback is invoked when the the local user's network is recovered.