diff --git a/android/src/main/kotlin/io/customer/customer_io/CustomerIOExtensions.kt b/android/src/main/kotlin/io/customer/customer_io/CustomerIOExtensions.kt index 9f2dbff..138a65a 100644 --- a/android/src/main/kotlin/io/customer/customer_io/CustomerIOExtensions.kt +++ b/android/src/main/kotlin/io/customer/customer_io/CustomerIOExtensions.kt @@ -26,7 +26,12 @@ internal fun MethodCall.invokeNative( try { @Suppress("UNCHECKED_CAST") val params = this.arguments as? Map ?: emptyMap() - result.success(performAction(params)) + val actionResult = performAction(params) + if (actionResult is Unit) { + result.success(true) + } else { + result.success(actionResult) + } } catch (ex: Exception) { result.error(this.method, ex.localizedMessage, ex) }