Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.01 KB

File metadata and controls

49 lines (34 loc) · 1.01 KB

iOS Setup (Required)

With npm

$ npm install capacitor-background-geolocation-firebase --save
$ npx cap sync

With yarn

$ yarn add capacitor-background-geolocation-firebase
$ npx cap sync

📂 AppDelegate.swift

Add the following code:

import UIKit
import Capacitor
import TSBackgroundFetch
+import Firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.

+       FirebaseApp.configure()
        .
        .
        .
        return true
    }
}

Google-Services-Info.plist

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