capacitor-community / firebase-analytics

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

Implementation of setDefaultEventParameters #161

Open hcondottalima opened 1 year ago

hcondottalima commented 1 year ago

Theres no other way to include additional parâmeters to an automatic event such as screen_view without the usage of setDefaultEventParameters.

What I really need is the implementation of the setDefaultEventParameters() val parameters = Bundle().apply { this.putString("level_name", "Caverns01") this.putInt("level_difficulty", 4) }

firebaseAnalytics.setDefaultEventParameters(parameters)

https://firebase.google.com/docs/analytics/events?platform=android

BkMiguel12 commented 9 months ago

Hey @hcondottalima did you find a way to send parameters along all requests?

hcondottalima commented 9 months ago

Hello @BkMiguel12, actually i didnt, but I can check with our devs if they found a workaround.

BkMiguel12 commented 9 months ago

Oh thank you very much! I will be attentive in case of any answer. There are many automatic events that I am not having control over because I cannot set the standard parameters that I have for my custom events :/