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
const bundle = new Bundle()
Develop games in your browser. Powerful, performant & highly capable.
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