hansemannn / titanium-firebase-analytics

Use the Firebase Analytics SDK in Axway Titanium 🚀
Other
35 stars 18 forks source link

ScreenClass always defaults to 'TiViewController' #38

Closed RipCazza closed 3 years ago

RipCazza commented 5 years ago

Hello,

I don't seem to be able to set ScreenClass and ScreenName with setScreenNameAndScreenClass(). It appears to always get logged as 'TiViewController' in the Firebase console.

I am calling setScreenNameAndScreenClass() in the controller of my window. I am using version 2.2.2 on Titanium SDK 7.5.0.

it may well be my ineptitude with Firebase and native development. If so, I welcome any directions on the correct implementation. Are there any restraints I should be adhering to regarding ScreenClass and ScreenName?

Many thanks in advance!

hansemannn commented 5 years ago

See #34 for details on this.

m1ga commented 5 years ago
Alloy.Globals.FirebaseAnalytics.setScreenNameAndScreenClass({
    screenName: "Im Fokus",
    screenClass: "Im Fokus"
});

works fine on Android for me but my iOS devices log TiActivity/TiViewController. #34 is talking about Android but that works fine for me and I set the screenClass so I'm not sure why it still uses the default value

iOS version 1.4.1