You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iOS does not allow applications in the Kids category to collect Firebase analytics. Firebase has refactored their libraries to utilize the CoreOnly module instead of Core to accommodate this. Currently RNFirebase pods rely on Firebase/Core. Update RNFirebase pod files to utilize CoreOnly instead of Core.
platform:ios,'10.0'require_relative'../node_modules/react-native-unimodules/cocoapods'require_relative'../node_modules/@react-native-community/cli-platform-ios/native_modules'target'MyApp'dornPrefix="../node_modules/react-native"# React Native and its dependenciespod'FBLazyVector',:path=>"#{rnPrefix}/Libraries/FBLazyVector"pod'FBReactNativeSpec',:path=>"#{rnPrefix}/Libraries/FBReactNativeSpec"pod'RCTRequired',:path=>"#{rnPrefix}/Libraries/RCTRequired"pod'RCTTypeSafety',:path=>"#{rnPrefix}/Libraries/TypeSafety"pod'React',:path=>"#{rnPrefix}/"pod'React-Core',:path=>"#{rnPrefix}/"pod'React-CoreModules',:path=>"#{rnPrefix}/React/CoreModules"pod'React-RCTActionSheet',:path=>"#{rnPrefix}/Libraries/ActionSheetIOS"pod'React-RCTAnimation',:path=>"#{rnPrefix}/Libraries/NativeAnimation"pod'React-RCTBlob',:path=>"#{rnPrefix}/Libraries/Blob"pod'React-RCTImage',:path=>"#{rnPrefix}/Libraries/Image"pod'React-RCTLinking',:path=>"#{rnPrefix}/Libraries/LinkingIOS"pod'React-RCTNetwork',:path=>"#{rnPrefix}/Libraries/Network"pod'React-RCTSettings',:path=>"#{rnPrefix}/Libraries/Settings"pod'React-RCTText',:path=>"#{rnPrefix}/Libraries/Text"pod'React-RCTVibration',:path=>"#{rnPrefix}/Libraries/Vibration"pod'React-Core/RCTWebSocket',:path=>"#{rnPrefix}/"pod'React-Core/DevSupport',:path=>"#{rnPrefix}/"pod'React-cxxreact',:path=>"#{rnPrefix}/ReactCommon/cxxreact"pod'React-jsi',:path=>"#{rnPrefix}/ReactCommon/jsi"pod'React-jsiexecutor',:path=>"#{rnPrefix}/ReactCommon/jsiexecutor"pod'React-jsinspector',:path=>"#{rnPrefix}/ReactCommon/jsinspector"pod'ReactCommon/jscallinvoker',:path=>"#{rnPrefix}/ReactCommon"pod'ReactCommon/turbomodule/core',:path=>"#{rnPrefix}/ReactCommon"pod'Yoga',:path=>"#{rnPrefix}/ReactCommon/yoga"pod'DoubleConversion',:podspec=>"#{rnPrefix}/third-party-podspecs/DoubleConversion.podspec"pod'glog',:podspec=>"#{rnPrefix}/third-party-podspecs/glog.podspec"pod'Folly',:podspec=>"#{rnPrefix}/third-party-podspecs/Folly.podspec"# Other native modules# Automatically detect installed unimodulesuse_unimodules!# react-native-cli autolinkinguse_native_modules!end
AppDelegate.m:
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree.*/
#import<Firebase.h>
#import"AppDelegate.h"
#import<React/RCTBundleURLProvider.h>
#import<React/RCTRootView.h>
#import<React/RCTLog.h>
#import<UMCore/UMModuleRegistry.h>
#import<UMReactNativeAdapter/UMNativeModulesProxy.h>
#import<UMReactNativeAdapter/UMModuleRegistryAdapter.h>@interfaceAppDelegate ()
@property (nonatomic, strong) NSDictionary *launchOptions;
@end@implementationAppDelegate@synthesize window = _window;
- (BOOL)application:(UIApplication *)applicationdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
RCTSetLogThreshold(RCTLogLevelInfo - 1);
//Clear keychain on first run in case of reinstallationif ([FIRApp defaultApp] == nil) {
[FIRApp configure];
}
// if (![[NSUserDefaults standardUserDefaults] objectForKey:@"FirstRun"]) {// [[FIRAuth auth] signOut:nil];// [[NSUserDefaults standardUserDefaults] setValue:@"1strun" forKey:@"FirstRun"];// [[NSUserDefaults standardUserDefaults] synchronize];// }
self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]];
self.launchOptions = launchOptions;
//Added for expo updates
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
#ifdef DEBUG
[selfinitializeReactNativeApp];
#else
EXUpdatesAppController *controller = [EXUpdatesAppController sharedInstance];
controller.delegate = self;
[controller startAndShowLaunchScreen:self.window];
#endif
[superapplication:application didFinishLaunchingWithOptions:launchOptions];
returnYES;
}
- (RCTBridge *)initializeReactNativeApp
{
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:selflaunchOptions:self.launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main"initialProperties:nil];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0fgreen:1.0fblue:1.0falpha:1];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
return bridge;
}
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
{
NSArray<id<RCTBridgeModule>> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge];
// You can inject any extra modules that you would like here, more information at:// https://facebook.github.io/react-native/docs/native-modules-ios.html#dependency-injectionreturn extraModules;
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
#ifdef DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"fallbackResource:nil];
#elsereturn [[EXUpdatesAppController sharedInstance] launchAssetUrl];
#endif
}
- (void)appController:(EXUpdatesAppController *)appControllerdidStartWithSuccess:(BOOL)success
{
appController.bridge = [selfinitializeReactNativeApp];
}
@end
Android
Click To Expand
Have you converted to AndroidX?
my application is an AndroidX application?
I am using android/gradle.settingsjetifier=true for Android compatibility?
I am using the NPM package jetifier for react-native compatibility?
android/build.gradle:
// N/A
android/app/build.gradle:
// N/A
android/settings.gradle:
// N/A
MainApplication.java:
// N/A
AndroidManifest.xml:
<!-- N/A -->
Environment
Click To Expand
react-native info output:
System:
OS: macOS 10.15.3
CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
Memory: 1.21 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.3 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.13.7 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 23, 25, 26, 28
Build Tools: 23.0.1, 23.0.2, 23.0.3, 24.0.0, 25.0.2, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.2, 28.0.3
System Images: android-23 | Intel x86 Atom, android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-25 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5977832
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.4 => 0.61.4
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-rename: 2.4.1
Platform that you're experiencing the issue on:
iOS
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:
6.7.1
Firebase module(s) you're using that has the issue:
The text was updated successfully, but these errors were encountered:
dlockwo
changed the title
(:fire:) Replace Firebase/Core dependency with Firebase/CoreOnly on iOS
🔥Replace Firebase/Core dependency with Firebase/CoreOnly on iOS
Apr 28, 2020
Issue
iOS does not allow applications in the Kids category to collect Firebase analytics. Firebase has refactored their libraries to utilize the CoreOnly module instead of Core to accommodate this. Currently RNFirebase pods rely on Firebase/Core. Update RNFirebase pod files to utilize CoreOnly instead of Core.
Issue from firebase-ios-sdk
Firebase updated pod dependencies
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:Firebase
module(s) you're using that has the issue:TypeScript
?React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: