Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Microsoft Certified: DevOps Engineer Expert · Microsoft
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
import Firebase func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: ...) -> Bool { FirebaseApp.configure() return true } pod 'Firebase/Crashlytics"
While importing Firebase into your AppDelegate is necessary to run the initialization method (FirebaseApp.configure()), simply adding an import text line does not download or mount the external analytics library pods needed to parse user behavioral signals.
import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { FirebaseApp.configure() return true } } class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Log a custom event Analytics.logEvent("screen_view", parameters: [ "screen_name": "Home" ]) // Log a breadcrumb Crashlytics.crashlytics().log("Home screen loaded") } }