initiateOnDeviceConversionMeasurementWithPhoneNumber method

Future<void> initiateOnDeviceConversionMeasurementWithPhoneNumber(
  1. String phoneNumber
)
inherited

Initiates on-device conversion measurement given a user phone number in E.164 format. Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op.

Only available on iOS.

Implementation

Future<void> initiateOnDeviceConversionMeasurementWithPhoneNumber(
  String phoneNumber,
) async {
  if (defaultTargetPlatform != TargetPlatform.iOS) {
    throw UnimplementedError(
      'initiateOnDeviceConversionMeasurementWithPhoneNumber() is only supported on iOS.',
    );
  }
  await _delegate.initiateOnDeviceConversionMeasurement(
    phoneNumber: phoneNumber,
  );
}