Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

rudderlabs/integration-swift-firebase

Repository files navigation

RudderStack
The Customer Data Platform for Developers

Website ·Documentation ·Community Slack


Firebase Integration

The Firebase integration allows you to send your event data from RudderStack to Google Firebase Analytics.

Installation

Swift Package Manager

Add the Firebase integration to your Swift project using Swift Package Manager:

  1. In Xcode, go toFile > Add Package Dependencies
add_package_dependency
  1. Enter the package repository URL:https://github.com/rudderlabs/integration-swift-firebase in the search bar
  2. Select the version you want to use
select_package
  1. Select the target to which you want to add the package
  2. Finally, click onAdd Package
select_target

Alternatively, add it to yourPackage.swift file:

// swift-tools-version:5.9// The swift-tools-version declares the minimum version of Swift required to build this package.import PackageDescriptionletpackage=Package(    name:"YourApp",    products:[.library(            name:"YourApp",            targets:["YourApp"]),],    dependencies:[        // Add the Firebase integration.package(url:"https://github.com/rudderlabs/integration-swift-firebase.git",.upToNextMajor(from:"<latest_version>"))],    targets:[.target(            name:"YourApp",            dependencies:[.product(name:"FirebaseIntegration",package:"integration-swift-firebase")]),])

Supported Native Firebase SDK Version

This integration supports Firebase iOS SDK version:

12.5.0+

Platform Support

The integration supports the following platforms:

  • iOS 15.0+
  • macOS 12.0+
  • tvOS 15.0+
  • watchOS 8.0+

Usage

Initialize the RudderStack SDK and add the Firebase integration:

import RudderStackAnalyticsimport FirebaseIntegrationclassAppDelegate:UIResponder,UIApplicationDelegate{func application(_ application:UIApplication, didFinishLaunchingWithOptions launchOptions:[UIApplication.LaunchOptionsKey:Any]?)->Bool{        // Initialize the RudderStack Analytics SDKletconfig=Configuration(            writeKey:"<WRITE_KEY>",            dataPlaneUrl:"<DATA_PLANE_URL>")letanalytics=Analytics(configuration: config)        // Add Firebase integration        analytics.add(plugin:FirebaseIntegration())returntrue}}

Replace:

  • <WRITE_KEY>: Your project's write key from the RudderStack dashboard
  • <DATA_PLANE_URL>: The URL of your RudderStack data plane

Contact us

For more information:

Follow Us

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp