diff --git a/.changeset/little-buses-hug.md b/.changeset/little-buses-hug.md new file mode 100644 index 00000000..503c8ec2 --- /dev/null +++ b/.changeset/little-buses-hug.md @@ -0,0 +1,5 @@ +--- +'@capacitor-firebase/functions': patch +--- + +fix(android): serialize arrays in arrays correctly diff --git a/packages/functions/android/src/main/java/io/capawesome/capacitorjs/plugins/firebase/functions/classes/results/CallResult.java b/packages/functions/android/src/main/java/io/capawesome/capacitorjs/plugins/firebase/functions/classes/results/CallResult.java index d34555b1..80c23f1e 100644 --- a/packages/functions/android/src/main/java/io/capawesome/capacitorjs/plugins/firebase/functions/classes/results/CallResult.java +++ b/packages/functions/android/src/main/java/io/capawesome/capacitorjs/plugins/firebase/functions/classes/results/CallResult.java @@ -59,6 +59,8 @@ private static JSArray createJSArrayFromArrayList(ArrayList arrayList) { for (Object value : arrayList) { if (value instanceof Map) { value = createJSObjectFromMap((Map) value); + } else if (value instanceof ArrayList) { + value = createJSArrayFromArrayList((ArrayList) value); } array.put(value); }