installFromSmDp method
Installs a profile using an SM‑DP+ URL and optional confirmation/activation code.
Implementation
@override
Future<InstallResult> installFromSmDp(String smDpUrl, {String? confirmationCode}) async {
try {
final result = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
'installFromSmDp',
<String, dynamic>{'smdpUrl': smDpUrl, 'confirmationCode': confirmationCode},
);
if (result == null) return InstallResult(status: InstallStatus.failed, message: 'No response from platform');
return InstallResult.fromMap(result);
} on PlatformException catch (e) {
return InstallResult(status: InstallStatus.failed, message: e.message ?? e.code);
}
}