Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.31 KB

INSTALL-IOS-AUTO.md

File metadata and controls

57 lines (38 loc) · 1.31 KB

iOS Auto-linking Instructions

With yarn

$ yarn add react-native-background-geolocation-firebase

With npm

$ npm install --save react-native-background-geolocation-firebase

To open your project in XCode, use the file YourProject.xcworkspace (not YourProject.xcodeproj)

pod install

$ cd ios
$ pod install

📂 AppDelegate.mm (or AppDelegate.m):

Note

If you've already installed react-native-firebase, this step will already have been performed.

#import "AppDelegate.h"
.
.
.
+#import <FirebaseCore/FirebaseCore.h>

@implementation AppDelegate

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  self.moduleName = @"example";
  // You can add your custom initial props in the dictionary below.
  // They will be passed down to the ViewController used by React Native.
  self.initialProps = @{};
  
+ [FIRApp configure];
  
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

Google-Services-Info.plist

From your Firebase Console, copy your downloaded Google-Services-Info.plist file into your application: