2 min read
Firebase
Last Updated - Platform 24.0 - SDK 19.0The PoqFirebase
integration wraps the Firebase SDK to provide Firebase services including Google Analytics, Performance Monitoring, App Distribution and Crashlytics.
Set up
https://github.com/poqcommerce/Poq.iOS.Firebase.git
- Set up your app via the Firebase console and download the GoogleService plist.
- Add the
PoqFirebase
framework from the URL above to your project. How? - Register the integration in your
AppDelegate.swift
.
import PoqFirebase
class AppDelegate: BaseAppDelegate { override func setupModules() { PoqPlatform.shared.addModule(PoqFirebase()) }}
- Add the
GoogleService-Info.plist
to your project. - Add a
GoogleServiceDevelopment-Info.plist
to support development mode. See the development mode section below.
Developer Mode
Firebase will be disabled in developer if you do not set up a development plist.
Firebase switches to using the GoogleServiceDevelopment-Info.plist
config when in development mode.
If this config does not exist then Firebase is disabled in developer mode.
This is to avoid tracking fake revenue, generated from development environments, against the live app.
To set up a developer mode plist and app:
- Create a new app in your Firebase project using a fake bundle identifier and download the GoogleService plist. For example:
com.poq.demoapp # Live app BundleIDcom.poq.demoapp.development # Fake BundleID for development mode
- Rename the
GoogleService-Info.plist
toGoogleServiceDevelopment-Info.plist
and add it to your project.
Dynamic Links
Make sure to follow the Firebase docs to set up the applink for Dynamic Links to work.
Dynamic Links require, and are resolved by, your apps link resolver /links
API.
You can customise the DeeplinkService
to resolve links in a hardcoded switch statement if you prefer.
History
- 13.0 (Mar 23): Release for Poq SDK 19 (v24) adopting the new analytics layer.
- 12.0 (Nov 22): Release for Poq SDK 18 (v23) adopting developer mode and adding missing events.
- 11.2 (Oct 22): Updated to Firebase v10.
- 11.1 (Oct 22): Updated to Firebase v9.
- 11.0 (Apr 22): Release for Poq SDK 17 (v22) improving Dynamic Links and resolving conflicts with AppsFlyer.
- 10.0 (Nov 21): Release for Poq SDK 16 (v21) adding Firebase Performance Monitoring.
- 9.0 (May 21): Release for Poq SDK 15 (v20) using Firebase v8.
- 8.0 (Jan 21): Release for Poq SDK 14 (v19).
- 7.0 (Nov 20): Release for Poq SDK 13 (v18) using SPM and Firebase v7.
- Removed GTM as an offering because Google do not maintain their SDK.
- 6.0 (Sep 20): Release for Poq SDK 12 (v17) using Firebase v6.31.
- 5.1 (Jul 20): Updated
ecommerce_purchase
event topurchase
using Firebase v6.27. - 5.0 (May 20): Release for Poq SDK 11 (v16).
- 4.1 (Mar 20): Added App Distribution and Crashlytics as Firebase buys Fabric.
- 4.0 (Mar 20): Release for Poq SDK 10 (v15) including GTM using Firebase v6.18.
- 3.0 (Oct 19): Release for Poq SDK 9 (v14) that merges Dynamic Links into PoqFirebase.
- 2.0 (Sep 19): Release for Poq SDK 8 (v13).
- 1.0 (Jun 19): Initial release of PoqFirebase and PoqDynamicLinks for Poq SDK 6 (v11) using Carthage and Firebase v6.7.