Skip to content

//sorisdk/com.iplateia.sorisdk/SORIListener/onNetworkError

onNetworkError

[androidJvm]
open override fun onNetworkError(materialId: String, error: String)

Called when a network error occurs while posting activity to the SORI API.

This callback is invoked when the SDK cannot complete an API request due to network unavailability. The request may be queued for later retry based on the current configuration settings.

Common error scenarios:

  • Device is offline or in airplane mode
  • Network connection is unstable
  • API endpoint is unreachable

This method has a default empty implementation, making it optional to override.

Since

4.3.2

Parameters

androidJvm

materialIdThe unique identifier of the material that failed to post
errorA human-readable error message describing the network issue

See also

SORIListener.onRequestQueuedfor handling queued requests
SORIConfig.enableDelayedSending