question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set value of $FIREBASE_ANALYTICS_COLLECTION_ENABLED on capacitor

See original GitHub issue

looks like there’s an issue with setting FIREBASE_ANALYTICS_COLLECTION_ENABLED I’m using ionic 5, capacitor 2 on a react project

Getting this log: Key firebase_analytics_collection_enabled expected Boolean but value was a java.lang.String. The default value false was returned.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
dalepocommented, Jun 7, 2020

For Android under <application>

      <meta-data
        tools:replace="android:value"
        android:name="firebase_analytics_collection_enabled"
        android:value="true"/>

You’ll have to add xmlns:tools="http://schemas.android.com/tools" to your manifest tag

4reactions
chemerisukcommented, Apr 1, 2020

@pantos27 better to ask ionic team, it should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable Firebase Analytics for Capacitor Apps - GitHub
Enable Firebase Analytics for Capacitor Apps. Contribute to ... Platform: Web/Android/iOS * Sets a user property to a given value.
Read more >
Configure Analytics data collection and usage - Firebase
in your Apple app, set the value of GOOGLE_ANALYTICS_IDFV_COLLECTION_ENABLED to NO (Boolean) in your app's Info. plist file.
Read more >
Ionic 5 Capacitor - Firebase Analytics only works on Web
When I test it locally, using ionic serve --lab (running on the browser), everything is working perfectly, all my data is collected in...
Read more >
How to Use Firebase Analytics with Ionic - Devdactic
Setting up Firebase analytics within your Ionic application is super easy with Capacitor, so we will go throught he whole process today and ......
Read more >
@capacitor-community/firebase-analytics NPM | npm.io
Check @capacitor-community/firebase-analytics 1.0.1 package - Last release ... Platform: Web/Android/iOS * Sets whether analytics collection is enabled for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found