react-native-firebase
react-native-firebase copied to clipboard
[🐛] When using Analytics logEvent, the custom parameter with name 'error_value' not appearing in the Firebase console
Issue
Hello there,
we are logging firebase events using some custom parameters. One of this parameter name is 'error_value'. The event is logged correctly in Firebase but 'error_value' parameter doesn't show up and no error/warning is logged (checked in Javascript and XCode console). If I change the error name for example error_value -> error_value_test the parameter is correctly logged.
Is this parameter reserved at some level?
Here is a snippet to reproduce the issue:
import Analytics from '@react-native-firebase/analytics';
const analytics = Analytics();
analytics.logEvent('my_event',{error_value: 'something bad occurred, try again later'});
Project Files
Javascript
Click To Expand
package.json:
"@react-native-firebase/analytics": "14.11.0",
firebase.json for react-native-firebase v6:
# N/A
iOS
Click To Expand
ios/Podfile:
- [ ] I'm not using Pods
- [x] I'm using Pods and my Podfile looks like:
From the podfile lock
- "RNFBAnalytics (from../node_modules/@react-native-firebase/analytics)"
AppDelegate.m:
// N/A
Android
Click To Expand
Have you converted to AndroidX?
- [x] my application is an AndroidX application?
- [ ] I am using
android/gradle.settingsjetifier=truefor Android compatibility? - [ ] I am using the NPM package
jetifierfor react-native compatibility?
android/build.gradle:
// N/A
android/app/build.gradle:
// N/A
android/settings.gradle:
// N/A
MainApplication.java:
// N/A
AndroidManifest.xml:
<!-- N/A -->
Environment
Click To Expand
react-native info output:
OUTPUT GOES HERE
- Platform that you're experiencing the issue on:
- [X] iOS
- [X] Android
- [ ] iOS but have not tested behavior on Android
- [ ] Android but have not tested behavior on iOS
- [X] Both
react-native-firebaseversion you're using that has this issue:e.g. 5.4.3
Firebasemodule(s) you're using that has the issue:e.g. Instance ID
- Are you using
TypeScript?Y/N&VERSION
Hi there! Unfortunately I'm not sure - you might ask on the corresponding upstream SDK for one of the platforms you use (either firebase-android-sdk or firebase-ios-sdk)
@mikehardy thanks for your answer. If this can help I experience the same issue on both platforms (I updated the description) so the problem is likely to be before the specific platform SDKs or directly in Firebase. I will also try with the upstream SDKs as you suggested.
I have the same problem.. @AleCatSS did you find a solution?
Hey @BogdanRad, not yet, for the moment we decided to change the parameter name to a different one.
FWIW I'm setting up some new custom dimensions (that I haven't started logging yet), and when picking a parameter that I want to map my dimension to, I'm seeing error_value show up in the "Event Parameter" dropdown list. I've never logged that before, so it may be an undocumented, yet reserved, parameter name.
Same as @henryglendening-hh . I'm seeing "error_value" show up in our list of event_params, with the value equal to the name of a different custom parameter. I am taking this to mean that the Firebase SDK had trouble serializing our custom parameter, and is reporting that to us via the built-in "error_value" param. So it's probably a reserved name.
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
"error_value" is a reserved param. It was previously called firebase_error_value and it's documented here : https://firebase.google.com/docs/analytics/errors?hl=en