Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.56 KB

INSTALL-IOS.md

File metadata and controls

50 lines (35 loc) · 1.56 KB

iOS Setup with Cocoapods

You will have to install the plugin by manually downloading a Release from this repository. The plugin is not currently submitted to a package manager (eg: jCenter)

Podfile

Add the following pod to your Podfile, providing the path to where you installed the background-geolocation-firebase SDK:

pod 'BackgroundGeolocationFirebase', :path => '../Libraries/background-geolocation-firebase/ios/BackgroundGeolocationFirebase.podspec'
$ pod install

📂 AppDelegate.m

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

@implementation AppDelegate

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  .
  .
  .
+ [FIRApp configure];
  return YES;
}

Google-Services-Info.plist

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

Issues?

Undefined symbols for architecture armv7: “_OBJC_CLASS_$_FIRApp

During pod installation, you may see warnings related to OTHER_LDFLAGS or other flags. To fix the issue, select the target of your project and add $(inherited) flag in Build Settings. You can reference this Stack Overflow issue for more details.