From c2bc25381baf3e2772f14fb4fef8e1aedd741e00 Mon Sep 17 00:00:00 2001 From: Apekka Date: Fri, 20 Oct 2023 17:26:25 +0200 Subject: [PATCH] fix crash --- .../src/main/java/com/urbanairship/reactnative/AirshipModule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt b/android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt index baf03879..407d2c25 100644 --- a/android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt +++ b/android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt @@ -249,7 +249,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) : @ReactMethod override fun pushGetActiveNotifications(promise: Promise) { promise.resolveResult { - proxy.push.getActiveNotifications() + JsonValue.wrapOpt(proxy.push.getActiveNotifications()) } }