Skip to main content

Function Signature

Future<void> configureICloudStorage()

Description

Configures iCloud backup storage. This must be called before using iCloud for backup or recovery operations.
This method is only available on iOS. It will have no effect on Android.

Parameters

This method takes no parameters.

Returns

void

Example

import 'package:portal_flutter/portal_flutter.dart';

final portal = Portal();

// Configure iCloud storage
await portal.configureICloudStorage();

// Now you can use iCloud backup
final response = await portal.backupWallet(
  method: PortalBackupMethod.iCloud,
);

Setup Requirements

  1. Enable iCloud capability in your Xcode project
  2. Enable iCloud Keychain
  3. Configure your App ID in the Apple Developer Portal
See the iCloud backup options guide for detailed setup instructions.

Errors

CodeDescription
NOT_INITIALIZEDPortal was not initialized
CONFIGURATION_FAILEDFailed to configure iCloud storage