initiateOnDeviceConversionMeasurementWithHashedPhoneNumber method

Future<void> initiateOnDeviceConversionMeasurementWithHashedPhoneNumber(
  1. String hashedPhoneNumber
)
inherited

Initiates on-device conversion measurement given a sha256-hashed, UTF8 encoded, 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> initiateOnDeviceConversionMeasurementWithHashedPhoneNumber(
  String hashedPhoneNumber,
) async {
  if (defaultTargetPlatform != TargetPlatform.iOS) {
    throw UnimplementedError(
      'initiateOnDeviceConversionMeasurementWithHashedPhoneNumber() is only supported on iOS.',
    );
  }
  await _delegate.initiateOnDeviceConversionMeasurement(
    hashedPhoneNumber: hashedPhoneNumber,
  );
}