capacitor-community / firebase-analytics

Enable Firebase Analytics for Capacitor Apps
MIT License
160 stars 64 forks source link

logEvent does not support array params #116

Open nhh opened 2 years ago

nhh commented 2 years ago

Describe the bug The documentation states that we can use array params, firebase throws an error indicating we cant.

To Reproduce Steps to reproduce the behavior:

  1. Use logEvent with params:
await FirebaseAnalytics.logEvent({
  name: "testEvent",
  params: {
    products: ["array", "array2"]
  }
})

Expected behavior Array params should be visible in firebase

Screenshots

Bildschirmfoto 2022-04-22 um 13 39 52

Bildschirmfoto 2022-04-22 um 13 41 05

Smartphone (please complete the following information):

nhh commented 2 years ago

EDIT: It seems that only certain events like purchase support array params.

These will be listed as the following:

Bildschirmfoto 2022-04-22 um 14 19 43

mukul-myhq commented 1 year ago

Hi Team, facing the same issue, any updates on this?