invertase / react-native-firebase

πŸ”₯ A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.68k stars 2.21k forks source link

[πŸ›] [Android] Remote Config Fetch Failed | [remoteConfig/failure] fetch() operation cannot be completed #6924

Closed ibrahim-musa closed 1 year ago

ibrahim-musa commented 1 year ago

Issue

I'm trying to fetch my Remote Config value in my app, but it keep return me this error

fetched error NativeFirebaseError: [remoteConfig/failure] fetch() operation cannot be completed successfully.
    at FirebaseConfigModule.fetchAndActivate

Here's my code to fetch:

remoteConfig().setDefaults({
  appConfig: defaultAppConfig
});

remoteConfig().fetchAndActivate().then((fetchedRemotely) => {
  if (fetchedRemotely) {
    console.log('Configs were retrieved from the backend and activated.', fetchedRemotely);
  } else {
    console.log(
      'No configs were fetched from the backend, and the local configs were already activated', fetchedRemotely
    );
  }
}).catch(error => console.error('fetched error', error));

Because of this fetch error, when I try to call remoteConfig().getAll() it only return me the default value that I set from calling setDefaults and not the latest remote config value from Firebase console.

This issue only happened to Android and fetching is fine when I tested in iOS. In my project I also had 2 Firebase project, one for production and one for development. Using the same codebase with development project it's working fine when fetching. Only in the production project the fetching is keep on failing.


Project Files

Javascript

Click To Expand

#### `package.json`: ```json { "name": "MyApp", "version": "2.10.6", "private": true, "scripts": { "start": "react-native start", "test": "jest", "clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean --force", "clean:android": "cd android/ && ./gradlew clean && cd ..", "newclear": "rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules/ && npm cache clean --force && npm i", "test:watch": "jest --watch", "updateSnapshot": "jest --updateSnapshot", "coverage": "jest --coverage && open coverage/lcov-report/index.html || xdg-open coverage/lcov-report/index.html", "android": "make run-android", "android:build": "cd android && ./gradlew :app:assembleRelease", "android:install": "cd android && ./gradlew assembleRelease && ./gradlew installRelease", "android:devices": "$ANDROID_HOME/platform-tools/adb devices", "android:logcat": "$ANDROID_HOME/platform-tools/adb logcat *:S ReactNative:V ReactNativeJS:V", "android:shake": "$ANDROID_HOME/platform-tools/adb devices | grep '\\t' | awk '{print $1}' | sed 's/\\s//g' | xargs -I {} $ANDROID_HOME/platform-tools/adb -s {} shell input keyevent 82", "android-linux": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android", "android:bundle": "react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle", "ios": "make run-ios", "ios:bundle": "react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --assets-dest ios", "prepare-env": "make prepare-env", "storybook": "storybook start -p 7007", "lint": "eslint app Tests index.* --ext .js --ext .jsx --cache", "lintNoCache": "eslint app Tests index.* --ext .js --ext .jsx", "lintFix": "yarn lint --fix", "lintErrorOnly": "eslint --quiet app Tests index.* --ext .js --ext .jsx --cache", "lintdiff": "git diff --name-only --cached --relative | grep '\\.js$' | xargs standard | snazzy", "fixcode": "standard --fix", "git-hook": "npm run lint -s && npm run test -s", "bugsnag-android": "make bugsnag-android", "bugsnag-ios": "make bugsnag-ios" }, "xcodeSchemes": { "Debug": [ "Alpha.Debug", "Beta.Debug" ], "Release": [ "Alpha.Release", "Beta.Release" ], "projectDirectory": "iOS" }, "projectDirectory": "iOS", "dependencies": { "@datadog/mobile-react-native": "1.0.0-rc4", "@datadog/mobile-react-navigation": "1.0.0-rc4", "@notifee/react-native": "^5.7.0", "@react-native-async-storage/async-storage": "1.15.7", "@react-native-clipboard/clipboard": "1.10.0", "@react-native-community/datetimepicker": "^2.4.0", "@react-native-cookies/cookies": "^6.0.3", "@react-native-firebase/analytics": "16.0.0", "@react-native-firebase/app": "16.0.0", "@react-native-firebase/dynamic-links": "16.0.0", "@react-native-firebase/messaging": "16.0.0", "@react-native-firebase/perf": "16.0.0", "@react-native-firebase/remote-config": "16.0.0", "@react-navigation/bottom-tabs": "^6.0.7", "@react-navigation/core": "^6.0.2", "@react-navigation/drawer": "^6.1.6", "@react-navigation/elements": "^1.1.2", "@react-navigation/native": "^6.0.4", "@react-navigation/native-stack": "^6.6.2", "@react-navigation/stack": "^6.0.9", "@types/lodash": "^4.14.185", "apisauce": "^2.0.1", "bugsnag-react-native": "2.22.5", "fast-memoize": "^2.5.2", "format-json": "^1.0.3", "formik": "^1.5.0", "i18next": "^22.4.3", "identity-obj-proxy": "^3.0.0", "libphonenumber-js": "^1.7.15", "lodash": "^4.17.11", "lottie-ios": "3.2.3", "lottie-react-native": "4.1.3", "moment": "^2.24.0", "moment-timezone": "^0.5.37", "prop-types": "^15.6.1", "querystringify": "1.0.0", "ramda": "^0.26.1", "react": "17.0.2", "react-i18next": "^12.1.1", "react-native": "0.65.2", "react-native-animatable": "^1.3.3", "react-native-background-fetch": "^4.1.2", "react-native-background-timer": "^2.4.1", "react-native-big-list": "^1.5.2", "react-native-check-app-install": "git+https://github.com/privyr/react-native-check-app-install#add-check-default-sms", "react-native-config": "1.3.3", "react-native-contacts": "5.0.7", "react-native-country-picker-modal": "^1.9.4", "react-native-datepicker": "^1.7.2", "react-native-deep-link": "^0.2.9", "react-native-device-info": "10.0.2", "react-native-device-settings": "^1.2.0", "react-native-document-picker": "^3.5.3", "react-native-elements": "^1.1.0", "react-native-fbsdk-next": "7.3.3", "react-native-fs": "2.16.6", "react-native-gesture-handler": "1.10.3", "react-native-google-places-autocomplete": "1.3.9", "react-native-haptic-feedback": "git+https://github.com/privyr/react-native-haptic-feedback.git#privyr-custom", "react-native-i18n": "2.0.14", "react-native-image-crop-picker": "0.35.0", "react-native-linear-gradient": "git+https://github.com/privyr/react-native-linear-gradient.git#privyr-custom", "react-native-markdown-renderer": "^3.2.8", "react-native-mime-types": "^2.2.1", "react-native-modal": "^9.0.0", "react-native-paged-contacts": "git+https://github.com/privyr/react-native-paged-contacts.git#privyr-custom", "react-native-paper": "git+https://github.com/privyr/react-native-paper.git#privyr-custom", "react-native-permissions": "2.2.2", "react-native-reanimated": "2.2.2", "react-native-safe-area-context": "^3.3.2", "react-native-screens": "3.10.2", "react-native-send-intent": "1.3.0", "react-native-simple-toast": "^1.0.0", "react-native-snackbar": "2.2.3", "react-native-status-bar-height": "^2.6.0", "react-native-super-grid": "^3.0.3", "react-native-svg": "10.1.0", "react-native-tab-view": "^3.1.1", "react-native-vector-icons": "git+https://github.com/privyr/react-native-vector-icons.git#privyr-custom", "react-native-webview": "11.14.3", "react-redux": "8.0.4", "recompose": "^0.30.0", "redux": "^4.0.0", "redux-persist": "^6.0.0", "redux-saga": "^1.0.2", "reduxsauce": "^1.0.1", "reselect": "^4.1.7", "route-parser": "0.0.5", "seamless-immutable": "^7.1.4", "string-hash": "^1.1.3", "svgs": "^4.1.0", "url-parse": "^1.4.4" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", "@react-native-community/eslint-config": "^2.0.0", "@storybook/addon-storyshots": "^3.4.0", "@storybook/addons": "^3.4.0", "@storybook/channels": "^3.4.0", "@storybook/react-native": "^3.4.0", "@types/jest": "^26.0.24", "@types/react": "17.0.2", "@types/react-native": "0.65.2", "@types/react-test-renderer": "17.0.2", "@typescript-eslint/eslint-plugin": "^5.39.0", "@typescript-eslint/parser": "^5.38.1", "babel-eslint": "8.2.2", "babel-jest": "^26.6.3", "babel-plugin-ignite-ignore-reactotron": "^0.3.0", "babel-plugin-module-resolver": "^4.1.0", "babel-preset-env": "^1.6.1", "babel-preset-react-native": "^3.0.2", "bugsnag-sourcemaps": "^1.0.4", "enzyme": "^3.2.0", "enzyme-adapter-react-16": "^1.1.0", "eslint": "^7.14.0", "eslint-config-airbnb": "^17.1.0", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-plugin-import": "^2.16.0", "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-react": "^7.12.4", "ignite-andross": "^3.0.4", "ignite-i18n": "1.2.0", "ignite-redux-persist": "1.1.2", "ignite-standard": "1.0.0", "ignite-vector-icons": "1.1.1", "jest": "^26.6.3", "metro-react-native-babel-preset": "^0.66.0", "mockery": "^2.1.0", "react-devtools-core": "3.4.3", "react-dom": "17.0.2", "react-native-codegen": "^0.0.7", "react-test-renderer": "17.0.2", "reactotron-react-native": "^2.1.0", "reactotron-redux": "^2.1.0", "reactotron-redux-saga": "^2.1.0", "snazzy": "^8.0.0", "standard": "10.0.2", "typescript": "^4.8.4", "@types/react-redux": "^7.1.24" }, "resolutions": { "@types/react": "17.0.2", "@types/react-dom": "17.0.2", "@types/react-native": "0.65.2" }, "jest": { "testMatch": [ "/Tests/**/*.js", "**/?(*.)(spec|test).js?(x)" ], "testPathIgnorePatterns": [ "/node_modules/", "/Tests/Setup.js" ], "moduleNameMapper": { "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "identity-obj-proxy" }, "transform": { "^.+\\.(js)$": "/node_modules/react-native/jest/preprocessor.js" }, "setupFiles": [ "/Tests/Setup" ], "preset": "react-native" }, "config": {}, "standard": { "parser": "babel-eslint", "globals": [ "describe", "test", "jest", "expect", "fetch", "navigator", "__DEV__", "XMLHttpRequest", "FormData", "React$Element" ] }, "rnpm": { "assets": [ "./assets/fonts" ] } } ``` #### `firebase.json` for react-native-firebase v6: ```json { "react-native": { "messaging_android_notification_color": "@color/colorAccent", "messaging_android_notification_channel_id": "high-priority", "messaging_android_headless_task_timeout": 30000 } } ```

iOS

Click To Expand

#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like: ```ruby # N/A ``` #### `AppDelegate.m`: ```objc // N/A ```


Android

Click To Expand

#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: ```groovy // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "30.0.2" minSdkVersion = 21 compileSdkVersion = 31 targetSdkVersion = 31 ndkVersion = "20.1.5948944" } repositories { google() mavenCentral() } dependencies { classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10' classpath("com.android.tools.build:gradle:4.2.1") classpath 'com.google.gms:google-services:4.3.14' classpath 'com.google.firebase:perf-plugin:1.4.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { exclusiveContent { // https://github.com/facebook/react-native/issues/35210 // We get React Native's Android binaries exclusively through npm, // from a local Maven repo inside node_modules/react-native/. // (The use of exclusiveContent prevents looking elsewhere like Maven Central // and potentially getting a wrong version.) filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } } mavenCentral() mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { url 'https://maven.google.com' } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } maven { // react-native-background-fetch url("${project(':react-native-background-fetch').projectDir}/libs") } maven { url "https://jitpack.io" } google() } } ``` #### `android/app/build.gradle`: ```groovy apply plugin: "com.android.application" apply plugin: 'com.google.firebase.firebase-perf' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' import com.android.build.OutputFile /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * * // https://reactnative.dev/docs/performance#enable-the-ram-format * bundleCommand: "ram-bundle", * * * // the entry file for bundle generation. If none specified and * // "index.android.js" exists, it will be used. Otherwise "index.js" is * // default. Can be overridden with ENTRY_FILE environment variable. * entryFile: "index.android.js", * * // whether to bundle JS and assets in debug mode * bundleInDebug: false, * * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) * // for example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' * // 'devDisabledIn${buildType}' * * // the root of your project, i.e. where "package.json" lives * root: "../../", * * // where to put the JS bundle asset in debug mode * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", * * // where to put the JS bundle asset in release mode * jsBundleDirRelease: "$buildDir/intermediates/assets/release", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in debug mode * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in release mode * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", * * // by default the gradle tasks are skipped if none of the JS files or assets change; this means * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"], * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ project.ext.react = [ entryFile: "index.android.js", // enableHermes: false, // clean and rebuild if changing enableHermes: true, // clean and rebuild if changing ] apply from: "../../node_modules/react-native/react.gradle" /** * Set this to true to create two separate APKs instead of one: * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false /** * The preferred build flavor of JavaScriptCore. * * For example, to use the international variant, you can use: * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` * * The international variant includes ICU i18n library and necessary data * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that * give correct results when using with locales other than en-US. Note that * this variant is about 6MiB larger per architecture than default. */ def jscFlavor = 'org.webkit:android-jsc:+' /** * Whether to enable the Hermes VM. * * This should be set on project.ext.react and mirrored here. If it is not set * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode * and the benefits of using Hermes will therefore be sharply reduced. */ def enableHermes = project.ext.react.get("enableHermes", false); android { ndkVersion rootProject.ext.ndkVersion compileSdkVersion rootProject.ext.compileSdkVersion flavorDimensions "default" dexOptions { preDexLibraries = false javaMaxHeapSize "3g" } compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 } defaultConfig { applicationId "my.app.id" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 599 versionName "2.10.6" vectorDrawables.useSupportLibrary = true multiDexEnabled true } signingConfigs { release { if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) { storeFile file(MYAPP_RELEASE_STORE_FILE) storePassword MYAPP_RELEASE_STORE_PASSWORD keyAlias MYAPP_RELEASE_KEY_ALIAS keyPassword MYAPP_RELEASE_KEY_PASSWORD } } } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" } } buildTypes { release { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" signingConfig signingConfigs.release } } productFlavors { prod { minSdkVersion rootProject.ext.minSdkVersion applicationId 'my.app.id' targetSdkVersion rootProject.ext.targetSdkVersion resValue "string", "build_config_package", "my.app.id" } } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // https://developer.android.com/studio/build/configure-apk-splits.html // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a":3, "x86_64":4] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = defaultConfig.versionCode * 1000 + versionCodes.get(abi) } } } } dependencies { implementation project(':react-native-device-settings') implementation project(':react-native-document-picker') compile project(':react-native-check-app-install') implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'com.android.support:multidex:1.0.1' implementation 'androidx.work:work-runtime:2.7.1' //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" // From node_modules implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { exclude group:'com.facebook.fbjni' } debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { exclude group:'com.facebook.flipper' exclude group:'com.squareup.okhttp3', module:'okhttp' } debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { exclude group:'com.facebook.flipper' } if (enableHermes) { def hermesPath = "../../node_modules/hermes-engine/android/"; debugImplementation files(hermesPath + "hermes-debug.aar") releaseImplementation files(hermesPath + "hermes-release.aar") } else { implementation jscFlavor } } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.implementation into 'libs' } apply plugin: 'com.google.gms.google-services' apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) // com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true ``` #### `android/settings.gradle`: ```groovy rootProject.name = 'PrivyrApp' include ':react-native-fs' project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android') include ':react-native-device-settings' project(':react-native-device-settings').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-settings/android') include ':react-native-document-picker' project(':react-native-document-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-document-picker/android') include ':react-native-check-app-install' project(':react-native-check-app-install').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-check-app-install/android') include ':pagedcontacts' project(':pagedcontacts').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-paged-contacts/android/') apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' ``` #### `MainApplication.java`: ```java package my.app.id; import android.app.Application; import android.content.Context; import com.facebook.react.PackageList; import com.facebook.react.ReactApplication; import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.soloader.SoLoader; import java.lang.reflect.InvocationTargetException; import com.facebook.react.modules.i18nmanager.I18nUtil; import java.util.List; public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List packages = new PackageList(this).getPackages(); return packages; } @Override protected String getJSMainModuleName() { return "index"; } }; @Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; } @Override public void onCreate() { super.onCreate(); I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance(); sharedI18nUtilInstance.forceRTL(this, false); sharedI18nUtilInstance.allowRTL(this, false); SoLoader.init(this, /* native exopackage */ false); initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); } /** * Loads Flipper in React Native templates. Call this in the onCreate method with something like * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); * * @param context * @param reactInstanceManager */ private static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { if (BuildConfig.DEBUG) { try { /* We use reflection here to pick up the class that initializes Flipper, since Flipper library is not available in release mode */ Class aClass = Class.forName("my.app.id.ReactNativeFlipper"); aClass .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) .invoke(null, context, reactInstanceManager); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } } ``` #### `AndroidManifest.xml`: ```xml ```


Environment

Click To Expand

**`react-native info` output:** ``` OUTPUT GOES HERE ``` - **Platform that you're experiencing the issue on**: - [ ] iOS - [x] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `v16.0.0` - **`Firebase` module(s) you're using that has the issue:** - `Remote Config` - **Are you using `TypeScript`?** - `Y` & `v4.8.4`


ibrahim-musa commented 1 year ago

Seems like this only happened when I run the app in debug mode in Android Simulator. Maybe some issue with my Firebase project settings. I'll close this for now.