-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error sending event to firebase analytics. W/FA: Value is too long #491
Comments
@alyleite , All right ? Could you help me with an issue I'm facing with Remote Config. I saw that you managed to solve a bug in (src / android / FirebasePlugin.java). I think the error is also in that file, but I don't know much about Java. If you can help me, thank you very much :-). Error with Remote Config -> #501 |
@alyleite the |
@dpa99c Firebase is actually accepting objects with lists. I also analyzed the Firebase javascript sdk. In EventParams there is an item array. This link has an example of e-commerce using the PURCHASE event where a list of products (items) are sent Sorry for my bad English. |
OK, I would be happy accept a PR that implements this for iOS & Android |
@dpa99c I could make a Pull request for Android, but I don't have the knowledge to make the changes in IOS |
@dpa99c Could I pull for Android only? |
Bug Report
Problem
I searched but found nothing related to it.
I'm developing an e-commerce app with
ionic
in wich i'm sending events to the firebase analytics using this plugin following the steps described here.However, when I try to send a list of products in the event
view_cart
I get the following error in logcat:W/FA: Value is too long; discarded. Value kind, name, value length: param, items, 204
This is the log of the event I sent:
V/FA-SVC: Logging event: origin=app,name=view_cart,params=Bundle[{ga_event_origin(_o)=app, ga_error_length(_el)=204, ga_error_value(_ev)=items, ga_screen_class(_sc)=MainActivity, ga_screen_id(_si)=-6971504103994550923, ga_screen(_sn)=carrinho, ga_error(_err)=4, value=36.0, currency=BRL, local_nome=Pizzaria CNM, local_id=108}]
Code
I decided to debug the plugin code (src/android/FirebasePlugin.java) and realized that the JsonArray is not being verified, only the Integer and Double are:
The array 'items' is send as a string exceeding the limit of 100 character array allowed by Firebase.
I changed the code on my local machine so I get it working as expected:
I didn't make a pull request because I believe I should change it on IOS too, but I have no knowledge in this area.
Version information
cordova info
Checklist
The text was updated successfully, but these errors were encountered: