Hi,
i try add code in javascript file:
Bundle bundle = new Bundle(); bundle.putString(FirebaseAnalytics.Param.CHARACTER, character); bundle.putLong(FirebaseAnalytics.Param.LEVEL, level); mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.LEVEL_UP, bundle);
but this not work , and have some bug
this code copied from firebase, pls teach me
Develop games in your browser. Powerful, performant & highly capable.
const bundle = new Bundle()
In JS there are no typing of variables.
As tomsstudio said it is probably caused by the Bundle bundle declaration, try const bundle when declaring the variable.
Hope it helps