修改默认的事件名
This commit is contained in:
parent
2bd5903184
commit
d65a867ecb
@ -852,7 +852,7 @@ public class MainActivity extends UnityPlayerActivity
|
||||
public void logEvent(String content) {
|
||||
try {
|
||||
Bundle bundle = JsonUtils.convertJsonToBundle(content);
|
||||
String eventName = bundle.getString("name", "event_name");
|
||||
String eventName = bundle.getString("name", "custom_event");
|
||||
mFirebaseAnalytics.logEvent(eventName, bundle);
|
||||
fbLogger.logEvent(eventName, bundle);
|
||||
} catch (JSONException e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user