diff --git a/android/src/main/java/io/invertase/firebase/messaging/BundleJSONConverter.java b/android/src/main/java/io/invertase/firebase/messaging/BundleJSONConverter.java index d784f694..e90ed8c3 100644 --- a/android/src/main/java/io/invertase/firebase/messaging/BundleJSONConverter.java +++ b/android/src/main/java/io/invertase/firebase/messaging/BundleJSONConverter.java @@ -166,6 +166,8 @@ public class BundleJSONConverter { jsonArray.put(objValue); } else if (objValue instanceof Bundle) { jsonArray.put(convertToJSON((Bundle) objValue)); + } else if (objValue instanceof Integer) { + jsonArray.put(objValue); } else { throw new IllegalArgumentException("Unsupported type: " + objValue.getClass()); }