Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Analytics setScreenName not working #317

Closed
TdoubleG opened this issue Feb 26, 2020 · 1 comment
Closed

Firebase Analytics setScreenName not working #317

TdoubleG opened this issue Feb 26, 2020 · 1 comment
Labels
bug Something isn't working properly ios relates to iOS platform runtime issue An issue related to app runtime

Comments

@TdoubleG
Copy link

Bug report

Current behavior:

Hello, I'm experiencing some issues while collecting analytical data.
I'm using Ionic v5.x

When calling this.firebaseX.setScreenName('AnyScreenName') following error appears in Xcode console

[Firebase/Analytics][I-ACS031000] Ignoring call to setScreenName:screenClass:. Screen reporting is disabled.

Analytics Collection is enabled. I can't even see the reporting in google analytics nor in firebase.

Expected behavior:

The screen reporting should collect information and show in google analytics and firebase

Steps to reproduce:

Install the plugin, write the code to set the screen name, build for ios, watch the xcode console output

Screenshots

Environment information

  • Cordova CLI version
  • Cordova platform version
    • ios 5.1.1
  • Plugins & versions installed in project (including this plugin)
    • cordova plugin ls
  • Dev machine OS and version, e.g.
    • OSX
ProductName:    Mac OS X
ProductVersion: 10.15.3
BuildVersion:   19D76

Related code:

    this.firebase.setScreenName('screenName');

Console output

console output

// Paste any relevant JS/native console output here
2020-02-26 08:48:46.979065+0100 appName[19556:4954651] 6.17.0 - [Firebase/Analytics][I-ACS031000] Ignoring call to setScreenName:screenClass:. Screen reporting is disabled.


Other information:

@dpa99c
Copy link
Owner

dpa99c commented Feb 28, 2020

Had a look at this and - as stated in this SO answer - and I've confirmed this empirically - setting FirebaseScreenReportingEnabled=false in the app plist (which is what setting the plugin variable FIREBASE_ANALYTICS_COLLECTION_ENABLED=false does) permanently disables screen reporting in the build - both automatic and manual.

However, with some testing, I've discovered that even if FirebaseScreenReportingEnabled=true, if FIREBASE_ANALYTICS_COLLECTION_ENABLED=false is set in the Google plist, then screen events are not sent. So I'll remove the setting of FirebaseScreenReportingEnabled since it is not necessary.

@dpa99c dpa99c added bug Something isn't working properly ios relates to iOS platform runtime issue An issue related to app runtime labels Feb 28, 2020
@dpa99c dpa99c closed this as completed in 275af5c Feb 28, 2020
@dpa99c dpa99c added ready for release Something has been implemented and is awaiting release to npm and removed ready for release Something has been implemented and is awaiting release to npm labels Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly ios relates to iOS platform runtime issue An issue related to app runtime
Projects
None yet
Development

No branches or pull requests

2 participants