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)
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
#import "AppDelegate.h"
.
.
.
+#import <Firebase/Firebase.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
.
.
.
+ [FIRApp configure];
return YES;
}
From your Firebase Console, copy your downloaded Google-Services-Info.plist
file into your application:
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.