iosfirebasefirebase-analytics

Failed to initiate on-device conversion measurement


I wanted to integrate Google on-device conversion measurements within a iOS app, but got the following warning -

Failed to initiate on-device conversionmeasurement. LinkedGoogleAppMeasurementOnDeviceConversion dependency does not support phone numbers.

This happened while calling below code block just after the user login -

Analytics.initiateOnDeviceConversionMeasurement(phoneNumber: +91XXXXXXXXXX)

Log output

11.2.0 - [FirebaseAnalytics][I-ACS023007] Analytics v.11.2.0 started
11.2.0 - [FirebaseAnalytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled
11.2.0 - [FirebaseAnalytics][I-ACS025036] App Delegate Proxy is disabled
11.2.0 - [FirebaseAnalytics][I-ACS044003] GoogleAppMeasurementIdentitySupport dependency is not currently linked. IDFA will not be accessible.
11.2.0 - [FirebaseAnalytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
11.2.0 - [FirebaseAnalytics][I-ACS023012] Analytics collection enabled
11.2.0 - [FirebaseAnalytics][I-ACS023220] Analytics screen reporting is enabled. Call Analytics.logEvent(AnalyticsEventScreenView, parameters: [...]) to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
11.2.0 - [FirebaseAnalytics][I-ACS023262] Failed to initiate on-device conversion measurement. Linked GoogleAppMeasurementOnDeviceConversion dependency does not support phone numbers.

Firebase version - 11.2.0

Xcode version - 16.2


Solution

  • While integrating firebase-ios-sdk into my Xcode project, I was presented with a list of multiple package products to include. Initially, I hadn’t selected FirebaseAnalyticsOnDeviceConversion, but after including it, everything started working.