Not all React Native Firebase packages have Expo config plugins provided yet. Packages without native steps required will work out of the box. modifying the Xcode project, Podfile, adle, AndroidManifest.xml etc. Note, this is not required if you build your project with EAS (Expo Application Services).Ĭonfig plugins are only required for React Native Firebase modules, which require custom native installation steps - e.g. If this command isn't run, you'll encounter connection errors to Firebase. Next, you need to use the expo prebuild -clean command as described in the "Adding custom native code" guide to rebuild your app with the plugin changes. Within your projects /android/adle file, provide your own versions by specifying any of the following options shown below: Using your own SDK versions is generally not recommended as it can lead to breaking changes in your application. Manually overriding these native SDK versions. Sometimes it's required to change these versions to play nicely with other React Native libraries therefore we allow Firebase SDKs), allowing us to be confident that every feature the Is tested against a fixed set of SDK versions (e.g. React Native Firebase internally sets the versions of the native SDKs which each module uses. However, we cannot guarantee that React Native Firebase works perfectly on it, so please test your project carefully. To support the Hermes JavaScript engine, React Native 0.64.0 or newer is required. The problem, however it is recommended you read the Android documentation to understand how it may impact your application. One common solution is to enable multidex support for Android. This error occurs when Android reaches the Miscellaneous Android Enabling MultidexĪs your application starts to grow with more native dependencies, your builds may start to fail with the commonĮxecution failed for task ':app:mergeDexDebug' error. You can follow the manual installation steps for iOS and Android. If you're using an older version of React Native without autolinking support, or wish to integrate into an existing project, This module does not provide much functionality, therefore to use other Firebase services, each of the modules for the individual Firebase services need installing separately. Once successfully linked and rebuilt, your application will be connected to Firebase using the module. To automatically link the package, rebuild your project: Requiring no further manual installation steps. Users on React Native 0.60+ automatically have access to " autolinking", Once the above steps have been completed, the React Native Firebase library must be linked to your project and your application needs to be rebuilt. Community support to help fix use_frameworks support for New Architecture is welcome! 4. New Architecture: Fabric is not compatible with use_frameworks!. To use use_frameworks with Hermes, make sure you have set static linkage with use_frameworks! :linkage => :static. Hermes: a fix was put in place in react-native release 0.69.1 that allows Hermes to work with use_frameworks!. You need to disable Flipper by commenting out the :flipper_configuration line in your Podfile. Notes: React-Native-Firebase uses use_frameworks, which has compatibility issues with Flipper, Hermes & Fabric.įlipper: use_frameworks is not compatible with Flipper. # right after `use_frameworks! :linkage => :static` $RNFirebaseAsStaticFramework = true This requires modification to twoįirst, add the google-services plugin as a dependency inside of your /android/adle file: To allow Firebase on Android to use the credentials, the google-services plugin must be enabled on the project. Configure Firebase with Android credentials Then, you can add those keys to the 'SHA certificate fingerprints' on your app in Firebase console.ĭownload the google-services.json file and place it inside of your project at the following location: /android/app/google-services.json. You have to copy both 'SHA1' and 'SHA-256' keys that belong to the 'debugAndroidTest' variant key option. To generate a certificate run cd android &. The debug signing certificate is optional to use Firebase with your app, but is required for Dynamic Links, Invites and Phone Authentication. Local projects package name which can be found inside of the manifest tag within the /android/app/src/main/AndroidManifest.xml The "Android package name" must match your On the Firebase console, add a new Android application and enter your projects details. To allow the Android app to securely connect to your Firebase project, a configuration file must be downloaded and added # Using npm npm install -save Using Yarn yarn add module must be installed before using any other Firebase service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |