message  Send Feedback

FirebaseJsonConfig

React Native Firebase firebase.json config

Properties


Properties

admob_android_app_id

admob_android_app_id: string;
Android Only API

The Google AdMob application App ID for Android.

This can be found under: Apps > App settings > App ID on the Google AdMob dashboard.

For testing purposes, use the App ID: ca-app-pub-3940256099942544~3347511713.


admob_delay_app_measurement_init

admob_delay_app_measurement_init: boolean;

By default, the Google Mobile Ads SDK initializes app measurement and begins sending user-level event data to Google immediately when the app starts. This initialization behavior ensures you can enable AdMob user metrics without making additional code changes.

If you require your app users to provide consent before collecting data, setting the value to true will prevent data being sent until the firebase.admob().initialize() method has been called.


admob_ios_app_id

admob_ios_app_id: string;
iOS Only API

The Google AdMob application App ID for iOS.

This can be found under: Apps > App settings > App ID on the Google AdMob dashboard.

For testing purposes, use the App ID: ca-app-pub-3940256099942544~1458002511.


analytics_auto_collection_enabled

analytics_auto_collection_enabled: boolean;

Disable or enable auto collection of analytics data.

This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. This can be overridden in JavaScript.

Example

// <project-root>/firebase.json
{
"react-native": {
"analytics_auto_collection_enabled": false
}
}
// Re-enable analytics data collection, e.g. once user has granted permission:
await firebase.analytics().setAnalyticsCollectionEnabled(true);

crashlytics_auto_collection_enabled

crashlytics_auto_collection_enabled: boolean;


crashlytics_debug_enabled

crashlytics_debug_enabled: boolean;


crashlytics_ndk_enabled

crashlytics_ndk_enabled: boolean;


database_persistence_enabled

database_persistence_enabled: boolean;

Set whether database persistence is enabled or disabled.

This can be overridden in JavaScript, e.g. when requesting permission or on a condition.

Example

// <project-root>/firebase.json
{
"react-native": {
"database_persistence_enabled": false
}
}
// Re-enable database persistence
await firebase.database().setPersistenceEnabled(true);

in_app_messaging_auto_collection_enabled

in_app_messaging_auto_collection_enabled: boolean;

Disable or enable auto collection & receiving of in-app messages and data collection.

This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. This can be overridden in JavaScript.

Example

// <project-root>/firebase.json
{
"react-native": {
"in_app_messaging_auto_collection_enabled": false
}
}
// Re-enable in-app messaging, e.g. once user has granted permission:
await firebase.inAppMessaging().setAutomaticDataCollectionEnabled(true);

messaging_android_headless_task_timeout

messaging_android_headless_task_timeout: number;


messaging_auto_init_enabled

messaging_auto_init_enabled: boolean;


ml_natural_language_language_id_model

ml_natural_language_language_id_model: boolean;

If true, the Language ID Model will be installed onto the device.


ml_natural_language_smart_reply_model

ml_natural_language_smart_reply_model: boolean;

If true, the Smart Reply Model will be installed onto the device.


ml_vision_barcode_model

ml_vision_barcode_model: boolean;


ml_vision_face_model

ml_vision_face_model: boolean;


ml_vision_image_label_model

ml_vision_image_label_model: boolean;


ml_vision_label_model

ml_vision_label_model: boolean;


ml_vision_ocr_model

ml_vision_ocr_model: boolean;


perf_auto_collection_enabled

perf_auto_collection_enabled: boolean;

Disable or enable auto collection of performance monitoring data collection.

This is useful for opt-in-first data flows, for example when dealing with GDPR compliance. This can be overridden in JavaScript.

Example

// <project-root>/firebase.json
{
"react-native": {
"perf_auto_collection_enabled": false
}
}
// Re-enable performance monitoring data collection, e.g. once user has granted permission:
await firebase.perf().setPerformanceCollectionEnabled(true);

React Native Market

Looking for pre-built React Native apps to kick start your next project? Check out the React Native Market by Invertase.

Your purchases help support our open-source projects such as React Native Firebase. All items are currently 50% off to celebrate the release of React Native Firebase version 6.
shopping_cartVisit React Native Market