installIosViaLpa method

  1. @override
Future<bool> installIosViaLpa(
  1. String lpaString
)
override

Installs iOS eSIM via Apple LPA URL (LPA string). Returns true if the system URL was opened successfully. This is a convenience for opening Apple's official LPA provisioning URL.

Implementation

@override
Future<bool> installIosViaLpa(String lpaString) async {
  try {
    final launched = await methodChannel.invokeMethod<bool>('installIosViaLpa', <String, dynamic>{'lpaString': lpaString});
    return launched == true;
  } on PlatformException {
    return false;
  }
}