//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
| materialId | The unique identifier of the material that failed to post |
| error | A human-readable error message describing the network issue |
See also
| SORIListener.onRequestQueued | for handling queued requests |
| SORIConfig.enableDelayedSending |
