Firebase logEvent String Length

I am trying to use firebase, but when I want to register the most visited URL from the user using logEventthis show error. Here is the code:

Bundle bundle3 = new Bundle();
bundle3.putString(FirebaseAnalytics.Param.ITEM_ID,"browser_most_url_bookmarked");
bundle3.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "http://vozforums.com/forumdisplay.php?f=33");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle3);

Logcat shows:

W / FA: the value is too high; discarded. Value Type, Name, Value Length: param, content_type, 42

I can’t understand why, can anyone help me?

+4
source share
1 answer

Yes .. found a problem.

This line calls this log:

bundle3.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "http://vozforums.com/forumdisplay.php?f=33");

They talk about FirebaseAnalytics.Param class. Your journal is also informative. Here are some points to consider:

Value is too long: , , .

Value kind, name, value length: param, content_type, 42

Kind = Param
Name = content_type
Length = 42

:

Param names can be up to 40 characters long
Param values can be up to 100 characters long

42, (.. 36)

, . , .

+8

All Articles