Skip to content

Commit

Permalink
Update index.ts (#3565)
Browse files Browse the repository at this point in the history
Adding to README.md instructions for capacitor support on Android.
  • Loading branch information
tnovau committed Nov 19, 2020
1 parent 0f197ad commit 7897f28
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/@ionic-native/plugins/firebase-analytics/index.ts
Expand Up @@ -11,6 +11,22 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
*
* NOTE: on iOS in order to collect demographic, age, gender data etc. you should additionally include AdSupport.framework into your project.
*
* ## Using capacitor?
* For Android you'll have to add in __android/app/src/main/AndroidManfiest.xml__ under `<application>`
* ```
* <meta-data
* tools:replace="android:value"
* android:name="firebase_analytics_collection_enabled"
* android:value="true"/>
*
* <meta-data
* tools:replace="android:value"
* android:name="google_analytics_automatic_screen_reporting_enabled"
* android:value="false"/>
* ```
*
* And in the same file, you'll have to add `xmlns:tools="http://schemas.android.com/tools"` to your _manifest_ tag.
*
* @usage
* ```typescript
* import { FirebaseAnalytics } from '@ionic-native/firebase-analytics/ngx';
Expand Down

0 comments on commit 7897f28

Please sign in to comment.