Skip to content

Commit 2201fbd

Browse files
authored
fix(analytics): string parameters in logEvent are sent as String instead of the parameter value (#76)
1 parent aa001c9 commit 2201fbd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/hip-masks-mix.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@capacitor-firebase/analytics": patch
3+
---
4+
5+
fix(android): string parameters in `logEvent` are sent as `String` instead of the parameter value

packages/analytics/android/src/main/java/dev/robingenz/capacitorjs/plugins/firebase/analytics/FirebaseAnalyticsHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static Bundle createBundleFromJson(@Nullable JSONObject json) {
109109
}
110110
break;
111111
default:
112-
bundle.putString(key, value.getClass().getSimpleName());
112+
bundle.putString(key, (String) value);
113113
}
114114
}
115115
} catch (JSONException exception) {

0 commit comments

Comments
 (0)