Update index.ts (#3565)

Adding to README.md instructions for capacitor support on Android.
This commit is contained in:
Tomás Novau 2020-11-19 08:36:12 +01:00 committed by GitHub
parent 0f197ad9fc
commit 7897f28d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';