send Logs Suspend
Send logs to PingOne server.
Sample usage:
lifecycleScope.launch {
try {
val supportId = PingOne.sendLogs(context)
if (supportId != null) {
// String with unique support ID will be returned in case the logs were sent successfully
// Pass the supportId value to the PingOne support team
}
} catch (e: PingOneSDKException) {
// Handle error
Log.e("PingOne", "Send logs failed: ${e.error.message}")
}
}
Return
String with unique support ID if logs were sent successfully, null otherwise
Parameters
context
The context of calling application.
Throws
if the operation fails